]> diplodocus.org Git - nmh/commitdiff
Use LEN() on string constants instead of strlen().
authorRalph Corderoy <ralph@inputplus.co.uk>
Wed, 19 Oct 2016 23:09:47 +0000 (00:09 +0100)
committerRalph Corderoy <ralph@inputplus.co.uk>
Wed, 19 Oct 2016 23:09:47 +0000 (00:09 +0100)
uip/slocal.c

index 789a59770e07a653578596f00c18759fb2bbd23c..254744b21a4d1609bcbf61421c65886abda0bb00 100644 (file)
@@ -1165,7 +1165,7 @@ get_sender (char *envelope, char **sender)
        return;
     }
 
        return;
     }
 
-    i = strlen ("From ");
+    i = LEN("From ");
     strncpy (buffer, envelope + i, sizeof(buffer));
     if ((cp = strchr(buffer, '\n'))) {
        *cp = 0;
     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.
      */
      * 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;
     while (fgets (buffer, sizeof(buffer), qfp)) {
        if (first) {
            first = 0;