aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--crypt.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/crypt.c b/crypt.c
index 8572199..c30672f 100644
--- a/crypt.c
+++ b/crypt.c
@@ -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);
}