Changeset 36486be for functions.c


Ignore:
Timestamp:
Aug 22, 2009, 12:50:08 AM (12 years ago)
Author:
Anders Kaseorg <andersk@mit.edu>
Branches:
master, 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)
Message:
Replace several owl_malloc, sprintf sequences with owl_strdup or owl_sprintf.

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

Legend:

Unmodified
Added
Removed
  • functions.c

    r303a9e1 r36486be  
    20302030
    20312031  buff = skiptokens(buff, 1);
    2032   newbuff = owl_malloc(strlen(buff)+strlen(redirect)+1);
    2033   strcpy(newbuff, buff);
    2034   strcat(newbuff, redirect);
     2032  newbuff = owl_sprintf("%s%s", buff, redirect);
    20352033
    20362034  if (type == 1) {
Note: See TracChangeset for help on using the changeset viewer.