]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - win/colours.h
Tidyups, remove of ifdefs
[user/henk/code/inspircd.git] / win / colours.h
index e90782bc93c72f88b4ceeb915d3cf312e280704b..6a5853c21bb30d0fb6a162d9d99f348bd75001fc 100644 (file)
@@ -41,14 +41,14 @@ int printf_c(const char * format, ...)
        int t;
        int c = 0;
        const char * p = message;
-       while ( (*p) && (*p != 0) )
+       while (*p != 0)
        {
                if (*p == '\033')
                {
                        // Escape sequence -> copy into the temp buffer, and parse the color.
                        p++;
                        t = 0;
-                       while(*p != 'm')
+                       while ((*p) && (*p != 'm'))
                        {
                                temp[t++] = *p;
                                ++p;