diff options
Diffstat (limited to 'libsylph')
-rw-r--r-- | libsylph/recv.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libsylph/recv.c b/libsylph/recv.c index c25108f3..1abcf7c1 100644 --- a/libsylph/recv.c +++ b/libsylph/recv.c @@ -225,7 +225,7 @@ gint recv_bytes_write(SockInfo *sock, glong size, FILE *fp) } if (prev - buf < size && fp && - fwrite(buf, sizeof(gchar), size - (prev - buf), fp) == EOF) { + fwrite(prev, sizeof(gchar), size - (prev - buf), fp) == EOF) { perror("fwrite"); g_warning(_("Can't write to file.\n")); fp = NULL; |