diff options
-rw-r--r-- | crypt.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -53,7 +53,9 @@ int main(int argc, char **argv) if ((printed = printf("%s\n", hash)) < 0) { error(strerror(errno)); } - assert(printed == strlen(hash) + 1); + if (printed != strlen(hash) + 1) { /* +1 for newline */ + error("Incomplete print"); + } exit(EXIT_SUCCESS); } |