[BACK]Return to cmd-show-buffer.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / tmux

Diff for /src/usr.bin/tmux/Attic/cmd-show-buffer.c between version 1.5 and 1.6

version 1.5, 2009/08/18 14:48:42 version 1.6, 2009/09/07 18:50:45
Line 18 
Line 18 
   
 #include <sys/types.h>  #include <sys/types.h>
   
 #include <string.h>  
 #include <vis.h>  #include <vis.h>
   
 #include "tmux.h"  #include "tmux.h"
Line 65 
Line 64 
         if (pb == NULL)          if (pb == NULL)
                 return (0);                  return (0);
   
         size = strlen(pb->data);          size = pb->size;
         if (size > SIZE_MAX / 4 - 1)          if (size > SIZE_MAX / 4 - 1)
                 size = SIZE_MAX / 4 - 1;                  size = SIZE_MAX / 4 - 1;
         in = xmalloc(size * 4 + 1);          in = xmalloc(size * 4 + 1);

Legend:
Removed from v.1.5  
changed lines
  Added in v.1.6