From 77b9929c5e6613802f89740c9aa93665381a5b44 Mon Sep 17 00:00:00 2001 From: Magnus Ahltorp Date: Fri, 10 Apr 2015 09:56:08 +0200 Subject: Generalize erlport interface --- c_src/fsynchelper.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'c_src/fsynchelper.c') 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; -- cgit v1.1