aboutsummaryrefslogtreecommitdiff
path: root/cmd-load-buffer.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicholas.marriott@gmail.com>2009-05-18 16:22:30 +0000
committerNicholas Marriott <nicholas.marriott@gmail.com>2009-05-18 16:22:30 +0000
commita03cf0e183a057665b3c83ed3b249975546b5519 (patch)
tree1e8ca1ab60fd8302f8594a045ab333a8a4de7745 /cmd-load-buffer.c
parentd2275f4abf48cf02bde6742e9c8afb247eb2247a (diff)
downloadrtmux-a03cf0e183a057665b3c83ed3b249975546b5519.tar.gz
rtmux-a03cf0e183a057665b3c83ed3b249975546b5519.tar.bz2
rtmux-a03cf0e183a057665b3c83ed3b249975546b5519.zip
+b on fopen.
Diffstat (limited to 'cmd-load-buffer.c')
-rw-r--r--cmd-load-buffer.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd-load-buffer.c b/cmd-load-buffer.c
index ab4c5c60..fd3387b0 100644
--- a/cmd-load-buffer.c
+++ b/cmd-load-buffer.c
@@ -1,4 +1,4 @@
-/* $Id: cmd-load-buffer.c,v 1.2 2009-01-27 23:26:15 nicm Exp $ */
+/* $Id: cmd-load-buffer.c,v 1.3 2009-05-18 16:22:30 nicm Exp $ */
/*
* Copyright (c) 2009 Tiago Cunha <me@tiagocunha.org>
@@ -63,7 +63,7 @@ cmd_load_buffer_exec(struct cmd *self, struct cmd_ctx *ctx)
return (-1);
}
- if ((f = fopen(data->arg, "r")) == NULL) {
+ if ((f = fopen(data->arg, "rb")) == NULL) {
ctx->error(ctx, "%s: %s", data->arg, strerror(errno));
return (-1);
}