- Timestamp:
- Aug 22, 2009, 12:50:08 AM (15 years ago)
- Branches:
- master, release-1.10, release-1.4, release-1.5, release-1.6, release-1.7, release-1.8, release-1.9
- Children:
- 24ccc01
- Parents:
- 303a9e1
- git-author:
- Anders Kaseorg <andersk@mit.edu> (08/22/09 00:47:21)
- git-committer:
- Anders Kaseorg <andersk@mit.edu> (08/22/09 00:50:08)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
util.c
r4083c49 r36486be 147 147 } else { 148 148 args=owl_realloc(args, sizeof(char *) * (count+1)); 149 args[count]=owl_malloc(strlen(foo)+1); 150 strcpy(args[count], foo); 149 args[count] = owl_strdup(foo); 151 150 count++; 152 151 } … … 325 324 /* add the argument */ 326 325 argv=owl_realloc(argv, sizeof(char *)*((*argc)+1)); 327 argv[*argc]=owl_malloc(strlen(curarg)+2); 328 strcpy(argv[*argc], curarg); 326 argv[*argc] = owl_strdup(curarg); 329 327 *argc=*argc+1; 330 328 strcpy(curarg, "");
Note: See TracChangeset
for help on using the changeset viewer.