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

Diff for /src/usr.bin/mandoc/mandoc_aux.c between version 1.8 and 1.9

version 1.8, 2017/06/12 18:55:42 version 1.9, 2018/02/07 20:04:33
Line 106 
Line 106 
 {  {
         char    *p;          char    *p;
   
         p = mandoc_malloc(sz + 1);          p = strndup(ptr, sz);
         memcpy(p, ptr, sz);          if (p == NULL)
         p[(int)sz] = '\0';                  err((int)MANDOCLEVEL_SYSERR, NULL);
         return p;          return p;
 }  }

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