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

Diff for /src/usr.bin/mail/strings.c between version 1.9 and 1.10

version 1.9, 2009/10/27 23:59:40 version 1.10, 2015/10/16 17:56:07
Line 71 
Line 71 
                 errx(1, "String too large");                  errx(1, "String too large");
         if (sp->s_topFree == NULL) {          if (sp->s_topFree == NULL) {
                 index = sp - &stringdope[0];                  index = sp - &stringdope[0];
                 sp->s_topFree = (char *)malloc(STRINGSIZE << index);                  sp->s_topFree = malloc(STRINGSIZE << index);
                 if (sp->s_topFree == NULL)                  if (sp->s_topFree == NULL)
                         errx(1, "No room for space %d", index);                          err(1, "malloc");
                 sp->s_nextFree = sp->s_topFree;                  sp->s_nextFree = sp->s_topFree;
                 sp->s_nleft = STRINGSIZE << index;                  sp->s_nleft = STRINGSIZE << index;
         }          }

Legend:
Removed from v.1.9  
changed lines
  Added in v.1.10