ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/common/win_popen.c
(Generate patch)

Comparing ray/src/common/win_popen.c (file contents):
Revision 1.4 by schorsch, Mon Oct 4 10:14:22 2004 UTC vs.
Revision 1.5 by greg, Wed Oct 5 17:20:55 2011 UTC

# Line 65 | Line 65 | char* type
65          int n, i, mode = 0, append = 0;
66          int ncmds = 0;
67          FILE *inf = NULL;
68 +        char *s = NULL;
69          HANDLE stdoutRd = NULL, stdoutWr = NULL;
70          HANDLE stdinRd = NULL, stdinWr = NULL;
71          HANDLE stderrWr = NULL;
# Line 80 | Line 81 | char* type
81                  eputs(estr);
82                  return NULL;
83          }
84 +        /* single quotes aren't removed, so change to double-quotes */
85 +        for (s=command; *s; s++)
86 +                if (*s == '\'')
87 +                        *s = '"';
88  
89          stdoutOrig = GetStdHandle(STD_OUTPUT_HANDLE);
90          stdinOrig = GetStdHandle(STD_INPUT_HANDLE);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines