]> granicus.if.org Git - php/commitdiff
Make sizeof formatting consistent
authorYoung-X <92siuyang@gmail.com>
Sat, 9 Dec 2017 04:06:57 +0000 (12:06 +0800)
committerNikita Popov <nikita.ppv@gmail.com>
Sat, 9 Dec 2017 17:34:14 +0000 (18:34 +0100)
Everything else in that file uses sizeof with parentheses.

win32/glob.c

index 8a40f7f506228d4f23bc6a4b94ba1422ba9c20d7..8c74ae7c3c10093cde6cec857ba4a7deb31a3e2c 100644 (file)
@@ -837,7 +837,7 @@ g_opendir(str, pglob)
        char buf[MAXPATHLEN];
 
        if (!*str)
-               strlcpy(buf, ".", sizeof buf);
+               strlcpy(buf, ".", sizeof(buf));
        else {
                if (g_Ctoc(str, buf, sizeof(buf)))
                        return(NULL);