summaryrefslogtreecommitdiff
path: root/ext/sockets/sockets.c
diff options
context:
space:
mode:
authorThies C. Arntzen <thies@php.net>2001-11-29 08:18:50 +0000
committerThies C. Arntzen <thies@php.net>2001-11-29 08:18:50 +0000
commit3ee263e3482c79525f864f9a0f378382e8cac51f (patch)
tree6b5db5d4be4d1b9b65eeb0048f898448f7c5544a /ext/sockets/sockets.c
parent5a67b295e6290128aa1963ab4ac5ae72542c0ce0 (diff)
downloadphp-git-3ee263e3482c79525f864f9a0f378382e8cac51f.tar.gz
i'm sure i had this compile before;-)
Diffstat (limited to 'ext/sockets/sockets.c')
-rw-r--r--ext/sockets/sockets.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/ext/sockets/sockets.c b/ext/sockets/sockets.c
index f7666481e3..11f6945b5f 100644
--- a/ext/sockets/sockets.c
+++ b/ext/sockets/sockets.c
@@ -779,7 +779,8 @@ PHP_FUNCTION(socket_read)
}
tmpbuf = erealloc(tmpbuf, retval + 1);
- tmpbuf[ retval ] = '\0` ;
+ tmpbuf[ retval ] = '\0' ;
+
RETURN_STRINGL(tmpbuf, retval, 0);
}
/* }}} */