From eda0cc87eedfbbe5a15a91a59489e31f69e30998 Mon Sep 17 00:00:00 2001 From: Ralph Corderoy Date: Sun, 30 Oct 2016 15:09:55 +0000 Subject: [PATCH 1/1] Replace strlen(foo) > 0 with *foo. --- uip/post.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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'; } } -- 2.48.1