line 428 malloc(len+1): +1 added

This commit is contained in:
h_vogt
2009-05-06 21:08:00 +00:00
parent 4ef61a65cf
commit 63dee6c2fd
2 changed files with 5 additions and 2 deletions
+1 -1
View File
@@ -425,7 +425,7 @@ static Status_t read_udnpath(
node[n].unique = TRUE;
/* Put pathname into info structure */
node[n].path_name = malloc(len);
node[n].path_name = malloc(len+1);
strcpy(node[n].path_name, path);
/* Increment count of paths read */