]> diplodocus.org Git - nmh/commitdiff
Replace sizeof string constant - 1 with LEN().
authorRalph Corderoy <ralph@inputplus.co.uk>
Wed, 19 Oct 2016 23:32:37 +0000 (00:32 +0100)
committerRalph Corderoy <ralph@inputplus.co.uk>
Wed, 19 Oct 2016 23:32:37 +0000 (00:32 +0100)
uip/show.c

index a3970d869ea3c4635ca38750f07bcd715c632972..b7f85fe13d1eae72b0451e5e113e0ae2be151dc9 100644 (file)
@@ -447,7 +447,7 @@ invalid:
                    if (*dp) {
                        if ((result = !uprf (dp, "charset")))
                            goto out;
                    if (*dp) {
                        if ((result = !uprf (dp, "charset")))
                            goto out;
-                       dp += sizeof("charset") - 1;
+                       dp += LEN("charset");
                        while (isspace ((unsigned char) *dp))
                            dp++;
                        if (*dp++ != '=')
                        while (isspace ((unsigned char) *dp))
                            dp++;
                        if (*dp++ != '=')