+Mon Oct 8 19:48:28 CDT 2001 Adam Heath <doogie@debian.org>
+
+ * main/main.c: Make sure the integer passed to --result-fd is correct
+ before manipulating the pointers(we checked after we manipulated
+ previously)
+
Sun Oct 7 22:23:54 CDT 2001 Adam Heath <doogie@debian.org>
* Makefile.in: Remove dulicate inclusion of utils in SUBDIRS.
unsigned long v;
char *ep;
+ v= strtoul(value,&ep,0);
+ if (*ep || v > INT_MAX)
+ badusage(_("invalid integer for --%s: `%.250s'"),cip->olong,value);
if (lastpipe) {
lastpipe->next= nfmalloc(sizeof(struct pipef));
lastpipe= lastpipe->next;
} else {
lastpipe= status_pipes= nfmalloc(sizeof(struct pipef));
}
- v= strtoul(value,&ep,0);
- if (*ep || v > INT_MAX)
- badusage(_("invalid integer for --%s: `%.250s'"),cip->olong,value);
lastpipe->fd= v;
}