]> mj.ucw.cz Git - libucw.git/blobdiff - ucw/sha1-hmac.c
Imported tableprinter module
[libucw.git] / ucw / sha1-hmac.c
index bc062ff5006637cd082d147b61c4ecc813e9758b..deef11f7d9dabb9f6a755165a05ee2d1553fc645 100644 (file)
@@ -77,7 +77,8 @@ sha1_hmac(byte *outbuf, const byte *key, uns keylen, const byte *data, uns datal
 static uns rd(char *dest)
 {
   char buf[1024];
-  fgets(buf, sizeof(buf), stdin);
+  if (!fgets(buf, sizeof(buf), stdin))
+    die("fgets()");
   *strchr(buf, '\n') = 0;
   if (buf[0] == '0' && buf[1] == 'x')
     {