From: Ralph Corderoy Date: Wed, 19 Oct 2016 23:09:47 +0000 (+0100) Subject: Use LEN() on string constants instead of strlen(). X-Git-Url: https://diplodocus.org/git/nmh/commitdiff_plain/b22a846ca4b5e21a3bc3b6d48cf3aa12f181ede0?hp=13326ef23c4764f02e63a549b14492d80a7869a8 Use LEN() on string constants instead of strlen(). --- diff --git a/uip/slocal.c b/uip/slocal.c index 789a5977..254744b2 100644 --- a/uip/slocal.c +++ b/uip/slocal.c @@ -1165,7 +1165,7 @@ get_sender (char *envelope, char **sender) return; } - i = strlen ("From "); + i = LEN("From "); strncpy (buffer, envelope + i, sizeof(buffer)); if ((cp = strchr(buffer, '\n'))) { *cp = 0; @@ -1251,7 +1251,7 @@ you_lose: * and massage the headers. Save * a copy of the "From " line for later. */ - i = strlen ("From "); + i = LEN("From "); while (fgets (buffer, sizeof(buffer), qfp)) { if (first) { first = 0;