Say '\0' instead of NUL in warning messages.
authorChristoph Mallon <christoph.mallon@gmx.de>
Sat, 29 Nov 2008 09:57:37 +0000 (09:57 +0000)
committerChristoph Mallon <christoph.mallon@gmx.de>
Sat, 29 Nov 2008 09:57:37 +0000 (09:57 +0000)
[r24136]

format_check.c

index aedea18..f47cc67 100644 (file)
@@ -580,7 +580,7 @@ next_arg:
                arg = arg->next;
        }
        if (!atend(&vchar)) {
-               warningf(pos, "format string contains NUL");
+               warningf(pos, "format string contains '\\0'");
        }
        if (arg != NULL) {
                unsigned num_args = num_fmt;
@@ -902,7 +902,7 @@ next_arg:
                arg = arg->next;
        }
        if (!atend(&vchar)) {
-               warningf(pos, "format string contains NUL");
+               warningf(pos, "format string contains '\\0'");
        }
        if (arg != NULL) {
                unsigned num_args = num_fmt;