X-Git-Url: https://the.earth.li/gitweb/?a=blobdiff_plain;f=sendsync.c;h=1d41d4d5434e5a542ba6a37be9638378943bf461;hb=c5c516adbe4ddcf8d57e7f21317125422e0f6ed8;hp=ace6b0d798099107b375cf0b2a7936911c80a752;hpb=f3143629476bae20f5310bbc0a59fe735b5d245d;p=onak.git diff --git a/sendsync.c b/sendsync.c index ace6b0d..1d41d4d 100644 --- a/sendsync.c +++ b/sendsync.c @@ -21,11 +21,8 @@ int fd_putchar(void *ctx, size_t count, void *c) { - int i; + fwrite(c, sizeof(char), count, ctx); - for (i = 0; i < count; i++) { - fputc(((char *) c )[i], ctx); - } return 0; }