summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libc/string/strerror.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/libc/string/strerror.c b/libc/string/strerror.c
index 36c467ef4..e157835c8 100644
--- a/libc/string/strerror.c
+++ b/libc/string/strerror.c
@@ -98,14 +98,16 @@ int main(void)
p = strerror(INT_MIN);
j = strlen(p)+1;
- if (j > max) max = j;
- printf("strerror.c - Test of INT_MIN: <%s> %d\n", p, j);
+ if (j > max) {
+ max = j;
+ printf("strerror.c - Test of INT_MIN: <%s> %d\n", p, j);
+ }
if (sizeof(retbuf) != max) {
printf("Error: strerror.c - dimension of retbuf should be = %d\n", max);
retcode = EXIT_FAILURE;
}
- printf("strerror.c - dimension of retbuf correct at %d\n", max);
+ printf("Passed.\n");
return retcode;
}