diff options
Diffstat (limited to 'build.c')
-rw-r--r-- | build.c | 7 |
1 files changed, 3 insertions, 4 deletions
@@ -100,11 +100,10 @@ main(int argc, char *argv[]) /* Find target inside command. */ for(b = b+3; *b; b++){ - if(*(b+1) && *(b+2) && *(b+3) - && strncmp(b, "-o ", 3) == 0) - strncpy(tgt, b+3, + if(strncmp(b, " -o ", 4) == 0) + strncpy(tgt, b+4, MAXTGT-1); - else if(*(b+1) && *b == '>') + else if(*b == '>') strncpy(tgt, b+1, MAXTGT-1); } |