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

Diff for /src/usr.bin/tmux/xmalloc.c between version 1.10 and 1.11

version 1.10, 2016/04/04 16:19:43 version 1.11, 2016/11/17 10:06:08
Line 81 
Line 81 
         return cp;          return cp;
 }  }
   
   char *
   xstrndup(const char *str, size_t maxlen)
   {
           char *cp;
   
           if ((cp = strndup(str, maxlen)) == NULL)
                   fatalx("xstrndup: %s", strerror(errno));
           return cp;
   }
   
 int  int
 xasprintf(char **ret, const char *fmt, ...)  xasprintf(char **ret, const char *fmt, ...)
 {  {

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