fix strlen + \0
authorcompudj <compudj@04897980-b3bd-0310-b5e0-8ef037075253>
Fri, 2 Dec 2005 18:50:56 +0000 (18:50 +0000)
committercompudj <compudj@04897980-b3bd-0310-b5e0-8ef037075253>
Fri, 2 Dec 2005 18:50:56 +0000 (18:50 +0000)
git-svn-id: http://ltt.polymtl.ca/svn@1361 04897980-b3bd-0310-b5e0-8ef037075253

genevent-new/genevent.c

index 4129426021568bf11625f01b73e4512e213f04c0..4151c64a8de746ed9bfda84ab225f868e0e1618d 100644 (file)
@@ -1089,7 +1089,7 @@ int print_type_write_fct(type_descriptor_t * td, FILE *fd, unsigned int tabs,
                                fprintf(fd, "*from = obj+1;\n");
                                break;
                        case STRING:
-                               fprintf(fd, "size = strlen(obj) + 1; /* Include '\0' */\n");
+                               fprintf(fd, "size = strlen(obj) + 1; /* Include final NULL char. */\n");
                                print_tabs(1, fd);
                                fprintf(fd, "if(buffer != NULL)\n");
                                print_tabs(2, fd);
This page took 0.024699 seconds and 4 git commands to generate.