# HG changeset patch # User ib # Date 1298067287 0 # Node ID 904d9843ffb67d9f19db64f6e3bd4d4a63688691 # Parent 2dd39155f320b906038fe8d7349816f3d3d8cb7d Cosmetic: Use 0, not '\0'. diff -r 2dd39155f320 -r 904d9843ffb6 gui/skin/cut.c --- a/gui/skin/cut.c Fri Feb 18 20:16:36 2011 +0000 +++ b/gui/skin/cut.c Fri Feb 18 22:14:47 2011 +0000 @@ -31,7 +31,7 @@ if ( n >= num && in[i] != sep && c + 1 < maxout ) out[c++] = in[i]; if ( n >= num && in[i+1] == sep ) break; } - if ( c < maxout ) out[c] = '\0'; + if ( c < maxout ) out[c] = 0; } int cutItemToInt( char * in,char sep,int num ) diff -r 2dd39155f320 -r 904d9843ffb6 gui/skin/font.c --- a/gui/skin/font.c Fri Feb 18 20:16:36 2011 +0000 +++ b/gui/skin/font.c Fri Feb 18 22:14:47 2011 +0000 @@ -93,7 +93,7 @@ strswap( tmp,'\t',' ' ); trim( tmp ); ptmp = strchr(tmp, ';'); - if (ptmp && !(ptmp == tmp + 1 && tmp[0] == '"' && tmp[2] == '"')) *ptmp = '\0'; + if (ptmp && !(ptmp == tmp + 1 && tmp[0] == '"' && tmp[2] == '"')) *ptmp = 0; if (!*tmp) continue; n = (strncmp(tmp, "\"=", 2) == 0 ? 1 : 0); cutItem( tmp,command,'=',n ); cutItem( tmp,param,'=',n+1 ); @@ -101,7 +101,7 @@ { int i; if (!command[1]) command[0] = '='; - else if (command[1] == '"') command[1] = '\0'; + else if (command[1] == '"') command[1] = 0; else cutItem(command, command, '"', 1); if ( command[0] & 0x80 ) {