Return to cmd-show-buffer.c CVS log | Up to [local] / src / usr.bin / tmux |
version 1.5, 2009/08/18 14:48:42 | version 1.6, 2009/09/07 18:50:45 | ||
---|---|---|---|
|
|
||
#include <sys/types.h> | #include <sys/types.h> | ||
#include <string.h> | |||
#include <vis.h> | #include <vis.h> | ||
#include "tmux.h" | #include "tmux.h" | ||
|
|
||
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); |