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

View File

@ -1,9 +1,12 @@
2009-05-06 Holger Vogt
* bug report 2787072 pp_lst.c:428 malloc(len+1) +1 added
2009-05-02 Holger Vogt
* configure.in: new flag NGDEBUG
main.c, signal_handler.c, visualc/vngspice.vcproj:
restore SIGSEGV signal handling for error message after seg fault
(not in debug mode, now only for Windows)
dctrcurv: winmessage about dc
dctrcurv.c: winmessage about dc
2009-05-01 Holger Vogt
* cktdojob.c, cktsopt.c: moved to cktsopt.c:

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 */