From 45b4ca291adfbc4e8313c3dc9dde3fe935cf3e81 Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Wed, 2 May 2007 17:38:25 +0000 Subject: [PATCH] sigh git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5070 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- libs/iksemel/src/io-posix.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/libs/iksemel/src/io-posix.c b/libs/iksemel/src/io-posix.c index 0415a937e1..2deb239aa9 100644 --- a/libs/iksemel/src/io-posix.c +++ b/libs/iksemel/src/io-posix.c @@ -110,12 +110,11 @@ io_recv (void *socket, char *buffer, size_t buf_len, int timeout) tv.tv_sec = timeout; if (timeout != -1) tvptr = &tv; else tvptr = NULL; if (select (sock + 1, &fds, NULL, NULL, tvptr) > 0) { - memset(buffer, 0, buf_len); len = recv (sock, buffer, buf_len, 0); if (len > 0) { char *p, *e = NULL, *t = NULL; + *(buffer+buf_len+1) = '\0'; for (p = buffer; p && *p; p++) { - if (*p == '>') { e = p; t = p+1;