Use sizeof() - 1 rather than strlen() - quark - quark web server
 (HTM) git clone git://git.suckless.org/quark
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) LICENSE
       ---
 (DIR) commit 34189e0a1f288e05ce528bcab28b922d53d5e471
 (DIR) parent b354ffb2385a0bbb8141ec1234b0e1d5874f8031
 (HTM) Author: Laslo Hunhold <dev@frign.de>
       Date:   Mon,  2 Jul 2018 18:41:29 +0200
       
       Use sizeof() - 1 rather than strlen()
       
       I know, most compiler probably optimize this anyway, but why not do it
       right in the first place?
       
       Diffstat:
         M util.c                              |       2 +-
       
       1 file changed, 1 insertion(+), 1 deletion(-)
       ---
 (DIR) diff --git a/util.c b/util.c
       @@ -17,7 +17,7 @@ struct server s;
        static void
        verr(const char *fmt, va_list ap)
        {
       -        if (argv0 && strncmp(fmt, "usage", strlen("usage"))) {
       +        if (argv0 && strncmp(fmt, "usage", sizeof("usage") - 1)) {
                        fprintf(stderr, "%s: ", argv0);
                }