X-Git-Url: https://git.sommitrealweird.co.uk/onak.git/blobdiff_plain/5538c5782135666d73f7615a37ea9689afa07dcd..076ef5c84d05a564ed8031ced310336b3b331dfe:/sendsync.c diff --git a/sendsync.c b/sendsync.c index ffcf705..1d41d4d 100644 --- a/sendsync.c +++ b/sendsync.c @@ -19,13 +19,10 @@ #include "parsekey.h" #include "sendsync.h" -int fd_putchar(void *ctx, size_t count, unsigned char *c) +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(c[i], ctx); - } return 0; }