[MPlayer-cvslog] r32927 - in trunk/gui/skin: cut.c font.c

ib subversion at mplayerhq.hu
Fri Feb 18 23:14:47 CET 2011


Author: ib
Date: Fri Feb 18 23:14:47 2011
New Revision: 32927

Log:
Cosmetic: Use 0, not '\0'.

Modified:
   trunk/gui/skin/cut.c
   trunk/gui/skin/font.c

Modified: trunk/gui/skin/cut.c
==============================================================================
--- trunk/gui/skin/cut.c	Fri Feb 18 21:16:36 2011	(r32926)
+++ trunk/gui/skin/cut.c	Fri Feb 18 23:14:47 2011	(r32927)
@@ -31,7 +31,7 @@ void cutItemString( char * in,char * out
    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 )

Modified: trunk/gui/skin/font.c
==============================================================================
--- trunk/gui/skin/font.c	Fri Feb 18 21:16:36 2011	(r32926)
+++ trunk/gui/skin/font.c	Fri Feb 18 23:14:47 2011	(r32927)
@@ -93,7 +93,7 @@ int fntRead( char * path,char * fname )
    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 fntRead( char * path,char * fname )
     {
      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 )
       {


More information about the MPlayer-cvslog mailing list