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

Diff for /src/usr.bin/tmux/utf8.c between version 1.55 and 1.56

version 1.55, 2020/06/09 10:37:00 version 1.56, 2020/07/21 05:24:33
Line 341 
Line 341 
         return (len);          return (len);
 }  }
   
   /* Same as utf8_strvis but allocate the buffer. */
   int
   utf8_stravisx(char **dst, const char *src, size_t srclen, int flag)
   {
           char    *buf;
           int      len;
   
           buf = xreallocarray(NULL, 4, srclen + 1);
           len = utf8_strvis(buf, src, srclen, flag);
   
           *dst = xrealloc(buf, len + 1);
           return (len);
   }
   
 /* Does this string contain anything that isn't valid UTF-8? */  /* Does this string contain anything that isn't valid UTF-8? */
 int  int
 utf8_isvalid(const char *s)  utf8_isvalid(const char *s)

Legend:
Removed from v.1.55  
changed lines
  Added in v.1.56