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

Diff for /src/usr.bin/tmux/format.c between version 1.172 and 1.173

version 1.172, 2019/03/13 15:37:28 version 1.173, 2019/03/13 18:09:12
Line 1256 
Line 1256 
   
         /* Make a copy of the key. */          /* Make a copy of the key. */
         copy = copy0 = xstrndup(key, keylen);          copy = copy0 = xstrndup(key, keylen);
           log_debug("%s: format = '%s'", __func__, copy);
   
         /* Process modifier list. */          /* Process modifier list. */
         list = format_build_modifiers(ft, &copy, &count);          list = format_build_modifiers(ft, &copy, &count);
Line 1322 
Line 1323 
                                 cmp = fm;                                  cmp = fm;
                 }                  }
         }          }
         log_debug("%s: remaining = '%s'", __func__, copy);  
   
         /* Is this a literal string? */          /* Is this a literal string? */
         if (modifiers & FORMAT_LITERAL) {          if (modifiers & FORMAT_LITERAL) {
Line 1452 
Line 1452 
         }          }
   
         /* Expand the buffer and copy in the value. */          /* Expand the buffer and copy in the value. */
           log_debug("%s: '%s' -> '%s'", __func__, copy0, value);
         valuelen = strlen(value);          valuelen = strlen(value);
         while (*len - *off < valuelen + 1) {          while (*len - *off < valuelen + 1) {
                 *buf = xreallocarray(*buf, 2, *len);                  *buf = xreallocarray(*buf, 2, *len);

Legend:
Removed from v.1.172  
changed lines
  Added in v.1.173