home *** CD-ROM | disk | FTP | other *** search
/ Programming Win32 Under the API / ProgrammingWin32UnderTheApiPatVillani.iso / patches / gcc-2_95_2-x86-win32-patches.zi / gcc-2.95.2-patches / broken-down / gcc-2.95.2-c++-mem-ovrn.diff < prev    next >
Encoding:
Text File  |  1999-11-08  |  747 b   |  21 lines

  1. Tue Aug 17 12:04:14 1999  Mumit Khan  <khan@xraylith.wisc.edu>
  2.  
  3.     * g++spec.c (lang_specific_driver): Add room for NULL in arglist.
  4.  
  5. Index: gcc-2.95.2/gcc/cp/g++spec.c
  6. ===================================================================
  7. RCS file: /homes/khan/src/CVSROOT/gcc-2.95.2/gcc/cp/g++spec.c,v
  8. retrieving revision 1.1.1.1
  9. diff -u -3 -p -r1.1.1.1 g++spec.c
  10. --- gcc-2.95.2/gcc/cp/g++spec.c    1999/11/05 01:09:46    1.1.1.1
  11. +++ gcc-2.95.2/gcc/cp/g++spec.c    1999/11/05 06:36:14
  12. @@ -197,7 +197,7 @@ lang_specific_driver (fn, in_argc, in_ar
  13.        return;
  14.      }
  15.  
  16. -  num_args = argc + added + need_math;
  17. +  num_args = argc + added + need_math + 1;
  18.    arglist = (char **) xmalloc (num_args * sizeof (char *));
  19.  
  20.    /* NOTE: We start at 1 now, not 0.  */
  21.