diff cli-agentfwd.c @ 1062:210982935887 coverity

merge
author Matt Johnston <matt@ucc.asn.au>
date Mon, 02 Mar 2015 21:17:41 +0800
parents 16584026a1f0
children 750ec4ec4cbe
line wrap: on
line diff
--- a/cli-agentfwd.c	Sat Feb 28 23:25:16 2015 +0800
+++ b/cli-agentfwd.c	Mon Mar 02 21:17:41 2015 +0800
@@ -155,7 +155,7 @@
 		goto out;
 	}
 	
-	buf_resize(inbuf, readlen);
+	inbuf = buf_resize(inbuf, readlen);
 	buf_setpos(inbuf, 0);
 	ret = atomicio(read, fd, buf_getwriteptr(inbuf, readlen), readlen);
 	if ((size_t)ret != readlen) {