diff options
author | Nicholas Marriott <nicm@openbsd.org> | 2009-11-26 22:28:24 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@openbsd.org> | 2009-11-26 22:28:24 +0000 |
commit | 8cb410c63cbec58dc736e160ffe88a67af46e4c9 (patch) | |
tree | 557c8cea9558af595265778be29a851a4afd4c28 /cmd-paste-buffer.c | |
parent | ba5404d93e40e61176ffb150b66ddc3b349603a7 (diff) | |
download | rtmux-8cb410c63cbec58dc736e160ffe88a67af46e4c9.tar.gz rtmux-8cb410c63cbec58dc736e160ffe88a67af46e4c9.tar.bz2 rtmux-8cb410c63cbec58dc736e160ffe88a67af46e4c9.zip |
Tidy up various bits of the paste code, make the data buffer char * and add
comments.
Diffstat (limited to 'cmd-paste-buffer.c')
-rw-r--r-- | cmd-paste-buffer.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd-paste-buffer.c b/cmd-paste-buffer.c index 11f70f1f..7d13ae0a 100644 --- a/cmd-paste-buffer.c +++ b/cmd-paste-buffer.c @@ -62,7 +62,7 @@ cmd_paste_buffer_exec(struct cmd *self, struct cmd_ctx *ctx) } } - if (pb != NULL && *pb->data != '\0') { + if (pb != NULL) { /* -r means raw data without LF->CR conversion. */ if (cmd_check_flag(data->chflags, 'r')) bufferevent_write(wp->event, pb->data, pb->size); |