diff options
author | peavey <peavey@e03df62e-2008-0410-955e-edbf42e46eb7> | 2007-07-16 13:39:15 +0000 |
---|---|---|
committer | peavey <peavey@e03df62e-2008-0410-955e-edbf42e46eb7> | 2007-07-16 13:39:15 +0000 |
commit | c2b9f9201dfd7bbf88641bc7bb0faafbc3cae8fd (patch) | |
tree | 868c058fb8d75bbf0dff7f26ca9c7366adcba3e3 /win | |
parent | 22f03b43c5acc3b912d2d0df894dca16a2c46a91 (diff) |
Oops, the (*p) check was meant for the inner loop, I blame the vs editor :>
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7450 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'win')
-rw-r--r-- | win/colours.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/win/colours.h b/win/colours.h index e90782bc9..6a5853c21 100644 --- a/win/colours.h +++ b/win/colours.h @@ -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; |