X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/a5a1425258ffb1f72e853b6adc6ff0ae58c636bd..f7919e77bcc861e64c769363649d757c792e9d69:/uip/post.c diff --git a/uip/post.c b/uip/post.c index fca85f7b..bf1c042d 100644 --- a/uip/post.c +++ b/uip/post.c @@ -1041,7 +1041,7 @@ putfmt (char *name, char *str, int *eai, FILE *out) * Strip off any trailing newlines */ - while (strlen(fullfrom) > 0 && fullfrom[strlen(fullfrom) - 1] == '\n') { + while (*fullfrom && fullfrom[strlen(fullfrom) - 1] == '\n') { fullfrom[strlen(fullfrom) - 1] = '\0'; } }