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

Diff for /src/usr.bin/tmux/format-draw.c between version 1.26 and 1.27

version 1.26, 2022/02/22 11:07:25 version 1.27, 2023/08/07 10:04:29
Line 1083 
Line 1083 
         struct utf8_data         ud;          struct utf8_data         ud;
         enum utf8_state          more;          enum utf8_state          more;
   
         out = copy = xcalloc(1, strlen(expanded) + 1);          out = copy = xcalloc(2, strlen(expanded) + 1);
         while (*cp != '\0') {          while (*cp != '\0') {
                 if (width >= limit)                  if (width >= limit)
                         break;                          break;
Line 1150 
Line 1150 
                 return (xstrdup(expanded));                  return (xstrdup(expanded));
         skip = total_width - limit;          skip = total_width - limit;
   
         out = copy = xcalloc(1, strlen(expanded) + 1);          out = copy = xcalloc(2, strlen(expanded) + 1);
         while (*cp != '\0') {          while (*cp != '\0') {
                 if (*cp == '#') {                  if (*cp == '#') {
                         end = format_leading_hashes(cp, &n, &leading_width);                          end = format_leading_hashes(cp, &n, &leading_width);

Legend:
Removed from v.1.26  
changed lines
  Added in v.1.27