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

Diff for /src/usr.bin/tmux/cmd-load-buffer.c between version 1.9 and 1.10

version 1.9, 2009/11/26 22:28:24 version 1.10, 2009/11/26 22:32:00
Line 66 
Line 66 
                 ctx->error(ctx, "%s: %s", data->arg, strerror(errno));                  ctx->error(ctx, "%s: %s", data->arg, strerror(errno));
                 goto error;                  goto error;
         }          }
         if (sb.st_size > SIZE_MAX) {          if (sb.st_size <= 0 || (uintmax_t) sb.st_size > SIZE_MAX) {
                 ctx->error(ctx, "%s: file too large", data->arg);                  ctx->error(ctx, "%s: file empty or too large", data->arg);
                 goto error;                  goto error;
         }          }
         psize = (size_t) sb.st_size;          psize = (size_t) sb.st_size;

Legend:
Removed from v.1.9  
changed lines
  Added in v.1.10