apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From b..@apache.org
Subject cvs commit: apr/build aplibtool.c
Date Mon, 20 Aug 2001 10:59:55 GMT
bjh         01/08/20 03:59:55

  Modified:    build    aplibtool.c
  Log:
  Fix an incorrect memory allocation size.
  
  Revision  Changes    Path
  1.6       +1 -1      apr/build/aplibtool.c
  
  Index: aplibtool.c
  ===================================================================
  RCS file: /home/cvs/apr/build/aplibtool.c,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- aplibtool.c	2001/08/17 16:16:49	1.5
  +++ aplibtool.c	2001/08/20 10:59:55	1.6
  @@ -384,7 +384,7 @@
       if (strcmp(ext, "lo") == 0) {
           cmd_data->stub_name = arg;
           cmd_data->output_type = otObject;
  -        newarg = (char *)malloc(strlen(newarg) + 2);
  +        newarg = (char *)malloc(strlen(arg) + 2);
           strcpy(newarg, arg);
           ext = strrchr(newarg, '.') + 1;
           strcpy(ext, OBJECT_EXT);
  
  
  

Mime
View raw message