version 1.10, 2011/10/23 00:49:25 |
version 1.11, 2012/07/10 11:53:01 |
|
|
|
|
#include <sys/types.h> |
#include <sys/types.h> |
|
|
|
#include <stdlib.h> |
#include <string.h> |
#include <string.h> |
|
|
#include "tmux.h" |
#include "tmux.h" |
|
|
buffer = args_strtonum(args, 'b', 0, INT_MAX, &cause); |
buffer = args_strtonum(args, 'b', 0, INT_MAX, &cause); |
if (cause != NULL) { |
if (cause != NULL) { |
ctx->error(ctx, "buffer %s", cause); |
ctx->error(ctx, "buffer %s", cause); |
xfree(cause); |
free(cause); |
xfree(pdata); |
free(pdata); |
return (-1); |
return (-1); |
} |
} |
|
|
if (paste_replace(&global_buffers, buffer, pdata, psize) != 0) { |
if (paste_replace(&global_buffers, buffer, pdata, psize) != 0) { |
ctx->error(ctx, "no buffer %d", buffer); |
ctx->error(ctx, "no buffer %d", buffer); |
xfree(pdata); |
free(pdata); |
return (-1); |
return (-1); |
} |
} |
|
|