[BACK]Return to apply.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / apply

Diff for /src/usr.bin/apply/apply.c between version 1.22 and 1.23

version 1.22, 2005/11/14 15:30:54 version 1.23, 2007/05/09 01:54:40
Line 111 
Line 111 
          * 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)

Legend:
Removed from v.1.22  
changed lines
  Added in v.1.23