mirror of
https://git.code.sf.net/p/ngspice/ngspice
synced 2026-08-22 05:47:42 +02:00
line 428 malloc(len+1): +1 added
This commit is contained in:
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user