Fix NUL-term bug in unparsehash.
authorfredrik <fredrik@959494ce-11ee-0310-bf91-de5d638817bd>
Wed, 19 Oct 2005 01:30:50 +0000 (01:30 +0000)
committerfredrik <fredrik@959494ce-11ee-0310-bf91-de5d638817bd>
Wed, 19 Oct 2005 01:30:50 +0000 (01:30 +0000)
git-svn-id: svn+ssh://svn.dolda2000.com/srv/svn/repos/src/doldaconnect@386 959494ce-11ee-0310-bf91-de5d638817bd

daemon/client.c

index 6f39327..814ee0f 100644 (file)
@@ -198,6 +198,7 @@ wchar_t *unparsehash(struct hash *hash)
     addtobuf(buf, ':');
     bufcat(buf, whbuf, wcslen(whbuf));
     free(whbuf);
+    addtobuf(buf, 0);
     return(buf);
 }