From 22b863dbb84e09ec27558a4d419c405a7c392eae Mon Sep 17 00:00:00 2001 From: chris Date: Wed, 20 Sep 2006 13:24:08 +0000 Subject: D'oh. --- tileserver/netstring.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tileserver/netstring.c') diff --git a/tileserver/netstring.c b/tileserver/netstring.c index b30ca5a67..f6bbc3b72 100644 --- a/tileserver/netstring.c +++ b/tileserver/netstring.c @@ -7,7 +7,7 @@ * */ -static const char rcsid[] = "$Id: netstring.c,v 1.1 2006-09-20 10:25:14 chris Exp $"; +static const char rcsid[] = "$Id: netstring.c,v 1.2 2006-09-20 13:24:08 chris Exp $"; #include #include @@ -20,9 +20,9 @@ size_t netstring_write(char *out, const void *buf, const size_t len) { size_t l = 0; char dummy[32]; l += sprintf(out ? out : dummy, "%u:", (unsigned)len); - if (out) memcpy(p, buf, len); + if (out) memcpy(out + l, buf, len); l += len; - if (out) buf[l] = ','; + if (out) out[l] = ','; ++l; return l; } -- cgit v1.2.3