Browse Source

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

pre-master-46
h_vogt 17 years ago
parent
commit
63dee6c2fd
  1. 5
      ChangeLog
  2. 2
      src/xspice/cmpp/pp_lst.c

5
ChangeLog

@ -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 2009-05-02 Holger Vogt
* configure.in: new flag NGDEBUG * configure.in: new flag NGDEBUG
main.c, signal_handler.c, visualc/vngspice.vcproj: main.c, signal_handler.c, visualc/vngspice.vcproj:
restore SIGSEGV signal handling for error message after seg fault restore SIGSEGV signal handling for error message after seg fault
(not in debug mode, now only for Windows) (not in debug mode, now only for Windows)
dctrcurv: winmessage about dc
dctrcurv.c: winmessage about dc
2009-05-01 Holger Vogt 2009-05-01 Holger Vogt
* cktdojob.c, cktsopt.c: moved to cktsopt.c: * cktdojob.c, cktsopt.c: moved to cktsopt.c:

2
src/xspice/cmpp/pp_lst.c

@ -425,7 +425,7 @@ static Status_t read_udnpath(
node[n].unique = TRUE; node[n].unique = TRUE;
/* Put pathname into info structure */ /* Put pathname into info structure */
node[n].path_name = malloc(len);
node[n].path_name = malloc(len+1);
strcpy(node[n].path_name, path); strcpy(node[n].path_name, path);
/* Increment count of paths read */ /* Increment count of paths read */

Loading…
Cancel
Save