Mercurial > hg > forks > pwpunix
comparison pwplib/setup.c @ 59:25861c440f15
Possibly fix a bug in argument handling.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Sat, 09 Jul 2011 11:48:52 +0300 |
parents | 85671798fdb3 |
children |
comparison
equal
deleted
inserted
replaced
58:6bddfed775f8 | 59:25861c440f15 |
---|---|
202 | 202 |
203 case OPT_STRING: | 203 case OPT_STRING: |
204 if (ARGV[i] != NULL) | 204 if (ARGV[i] != NULL) |
205 { | 205 { |
206 *((char**)(opts[wh].var)) = strdup(ARGV[i]); | 206 *((char**)(opts[wh].var)) = strdup(ARGV[i]); |
207 rmarg(&ARGC, &ARGV, 1); | 207 rmarg(&ARGC, ARGV, 1); |
208 } | 208 } |
209 break; | 209 break; |
210 } | 210 } |
211 } else | 211 } else |
212 i++; | 212 i++; |