From d2df0f69c1376c701158b8eee31bc5003038ea16 Mon Sep 17 00:00:00 2001 From: Erik Ekman Date: Wed, 23 Aug 2006 16:38:58 +0000 Subject: [PATCH] Return number of bytes written --- CHANGELOG | 2 +- read.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/CHANGELOG b/CHANGELOG index 5b706d8..fb11388 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -7,7 +7,7 @@ iodine - IP over DNS is now easy CHANGES: -xxxx-xx-xx: 0.4 +xxxx-xx-xx: 0.3.2 - New encoding, 25% more peak upstream throughput - New -l option to set local ip to listen to on server diff --git a/read.c b/read.c index c2d7fe2..412e43d 100644 --- a/read.c +++ b/read.c @@ -86,7 +86,7 @@ int readdata(char *packet, char **src, char *dst, size_t len) { if (len < 0) - return len; + return 0; memcpy(dst, *src, len); @@ -138,7 +138,7 @@ int putdata(char **dst, char *data, size_t len) { if (len < 0) - return len; + return 0; memcpy(*dst, data, len);