[svn:parrot] r38760 - trunk/src

petdance at svn.parrot.org petdance at svn.parrot.org
Wed May 13 22:24:15 UTC 2009


Author: petdance
Date: Wed May 13 22:24:14 2009
New Revision: 38760
URL: https://trac.parrot.org/parrot/changeset/38760

Log:
use character \0 instead of 0

Modified:
   trunk/src/packfile.c

Modified: trunk/src/packfile.c
==============================================================================
--- trunk/src/packfile.c	Wed May 13 22:17:33 2009	(r38759)
+++ trunk/src/packfile.c	Wed May 13 22:24:14 2009	(r38760)
@@ -1038,7 +1038,7 @@
             header->uuid_size);
 
         /* NULL terminate */
-        header->uuid_data[header->uuid_size] = 0;
+        header->uuid_data[header->uuid_size] = '\0';
     }
     else
         /* Don't know this UUID type. */
@@ -2731,7 +2731,7 @@
     /* find seg e.g. CODE_DB => CODE and attach it */
     code_name              = str_dup(debug->base.name);
     str_len                = strlen(code_name);
-    code_name[str_len - 3] = 0;
+    code_name[str_len - 3] = '\0';
     code                   = (PackFile_ByteCode *)PackFile_find_segment(interp,
                                 self->dir, code_name, 0);
 


More information about the parrot-commits mailing list