From dacdaa20393daa4f49e9e2b5ddced3d6c2206555 Mon Sep 17 00:00:00 2001 From: michael Date: Sun, 2 Jul 2006 10:47:52 +0000 Subject: [PATCH] clear buffer --- sap.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sap.c b/sap.c index 232c0c3..64f1437 100644 --- a/sap.c +++ b/sap.c @@ -63,6 +63,7 @@ char *get_url_from_sap(char *service) continue; } + bzero(buffer, BUFFSIZE); if ((recvd = recv(fd, buffer, BUFFSIZE, 0)) < 1) { perror("recv"); return NULL; -- 2.39.5