--- ../../anoncvs/gift/libSquirePPM/ppm_comment.c 2001-02-01 12:22:41.000000000 +0100 +++ libSquirePPM/ppm_comment.c 2006-11-09 05:27:17.000000000 +0100 @@ -40,7 +40,7 @@ free(the_ppm->comments); the_ppm->comment_length = i + strlen(new_comment); - the_ppm->comments = malloc(the_ppm->comment_length*sizeof(char)); + the_ppm->comments = malloc((the_ppm->comment_length+1)*sizeof(char)); i = 0; if (original_comments != NULL) { c = original_comments;