X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=win%2Fcolours.h;h=c0bccd24944d9d2e544241104fe91f66e8b015e1;hb=810c662c9b55908101ca085293c52c3239ef22d1;hp=e90782bc93c72f88b4ceeb915d3cf312e280704b;hpb=22f03b43c5acc3b912d2d0df894dca16a2c46a91;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/win/colours.h b/win/colours.h index e90782bc9..c0bccd249 100644 --- a/win/colours.h +++ b/win/colours.h @@ -2,8 +2,8 @@ * | Inspire Internet Relay Chat Daemon | * +------------------------------------+ * - * InspIRCd: (C) 2002-2007 InspIRCd Development Team - * See: http://www.inspircd.org/wiki/index.php/Credits + * InspIRCd: (C) 2002-2009 InspIRCd Development Team + * See: http://wiki.inspircd.org/Credits * * This program is free but copyrighted software; see * the file COPYING for details. @@ -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;