Changeset 36486be for zwrite.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
  • zwrite.c

    r4083c49 r36486be  
    170170     
    171171      /* simple hack for now to nuke stderr */
    172       openline=owl_malloc(strlen(zsigproc)+40);
    173       strcpy(openline, zsigproc);
    174 #if !(OWL_STDERR_REDIR)
    175       strcat(openline, " 2> /dev/null");
     172#if OWL_STDERR_REDIR
     173      openline = owl_strdup(zsigproc);
     174#else
     175      openline = owl_sprintf("%s 2> /dev/null", zsigproc);
    176176#endif
    177177      file=popen(openline, "r");
Note: See TracChangeset for help on using the changeset viewer.