]> git.zerfleddert.de Git - record-dvb/commitdiff
clear buffer
authormichael <michael>
Sun, 2 Jul 2006 10:47:52 +0000 (10:47 +0000)
committermichael <michael>
Sun, 2 Jul 2006 10:47:52 +0000 (10:47 +0000)
sap.c

diff --git a/sap.c b/sap.c
index 232c0c3f80ea00a2d1ae239b4558c9776b2845f4..64f1437b5eab519b3b80d565d6d4f5376677b0cb 100644 (file)
--- a/sap.c
+++ b/sap.c
@@ -63,6 +63,7 @@ char *get_url_from_sap(char *service)
                        continue;
                }
 
                        continue;
                }
 
+               bzero(buffer, BUFFSIZE);
                if ((recvd = recv(fd, buffer, BUFFSIZE, 0)) < 1) {
                        perror("recv");
                        return NULL;
                if ((recvd = recv(fd, buffer, BUFFSIZE, 0)) < 1) {
                        perror("recv");
                        return NULL;
Impressum, Datenschutz