summaryrefslogtreecommitdiff
path: root/c_src/fsynchelper.c
diff options
context:
space:
mode:
authorMagnus Ahltorp <map@kth.se>2015-04-10 09:56:08 +0200
committerMagnus Ahltorp <map@kth.se>2015-04-10 10:29:04 +0200
commit77b9929c5e6613802f89740c9aa93665381a5b44 (patch)
tree73289b2b640d2ed584ab2774d49b6b23b3d78bb7 /c_src/fsynchelper.c
parentbf0cd7334e9ed63f6e5c08f5aa1068b52e4aded4 (diff)
Generalize erlport interface
Diffstat (limited to 'c_src/fsynchelper.c')
-rw-r--r--c_src/fsynchelper.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/c_src/fsynchelper.c b/c_src/fsynchelper.c
index 6ffa80a..2a942be 100644
--- a/c_src/fsynchelper.c
+++ b/c_src/fsynchelper.c
@@ -32,7 +32,7 @@ main()
/* XXX: exits when command size is 0 */
- while ((len = read_command(buf, sizeof(buf)-1)) > 0) {
+ while ((len = read_command((unsigned char *)buf, sizeof(buf)-1, 2)) > 0) {
buf[len] = '\0';
while (1) {
int fd;