Changeset 46d940a for util.c


Ignore:
Timestamp:
Mar 7, 2010, 10:28:24 PM (15 years ago)
Author:
Anders Kaseorg <andersk@mit.edu>
Branches:
master, release-1.10, release-1.6, release-1.7, release-1.8, release-1.9
Children:
66a8cd6
Parents:
1c4b4ca
git-author:
Anders Kaseorg <andersk@mit.edu> (02/28/10 00:32:30)
git-committer:
Anders Kaseorg <andersk@mit.edu> (03/07/10 22:28:24)
Message:
atokenize: Use owl_strdup instead of memcpy.

Signed-off-by: Anders Kaseorg <andersk@mit.edu>
Reviewed-by: Nelson Elhage <nelhage@mit.edu>
File:
1 edited

Legend:

Unmodified
Added
Removed
  • util.c

    r40d22cf r46d940a  
    130130  int done=0, first=1, count=0;
    131131
    132   workbuff=owl_malloc(strlen(buffer)+1);
    133   memcpy(workbuff, buffer, strlen(buffer)+1);
     132  workbuff = owl_strdup(buffer);
    134133
    135134  args=NULL;
Note: See TracChangeset for help on using the changeset viewer.