Return to apply.c CVS log | Up to [local] / src / usr.bin / apply |
version 1.22, 2005/11/14 15:30:54 | version 1.23, 2007/05/09 01:54:40 | ||
---|---|---|---|
|
|
||
* Allocate enough space to hold the maximum command. | * Allocate enough space to hold the maximum command. | ||
*/ | */ | ||
if (n == 0) { | if (n == 0) { | ||
int l; | |||
len = sizeof("exec ") - 1 + | len = sizeof("exec ") - 1 + | ||
strlen(argv[0]) + 9 * (sizeof(" %1") - 1) + 1; | strlen(argv[0]) + 9 * (sizeof(" %1") - 1) + 1; | ||
if ((cmd = malloc(len)) == NULL) | if ((cmd = malloc(len)) == NULL) |