From: Ralph Corderoy Date: Wed, 19 Oct 2016 23:32:37 +0000 (+0100) Subject: Replace sizeof string constant - 1 with LEN(). X-Git-Url: https://diplodocus.org/git/nmh/commitdiff_plain/c99fde787781d43d2ada1e89d82a0e6a561656b6?hp=1555816b6ceb82559fdaff41df7fed70ca07e628 Replace sizeof string constant - 1 with LEN(). --- diff --git a/uip/show.c b/uip/show.c index a3970d86..b7f85fe1 100644 --- a/uip/show.c +++ b/uip/show.c @@ -447,7 +447,7 @@ invalid: if (*dp) { if ((result = !uprf (dp, "charset"))) goto out; - dp += sizeof("charset") - 1; + dp += LEN("charset"); while (isspace ((unsigned char) *dp)) dp++; if (*dp++ != '=')