blob: c81936be61bac7ae1376e0c6afb143f9bcb00ecd (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
--- a/base/socket.c
+++ b/base/socket.c
@@ -126,7 +126,7 @@
i = 0;
pi = buffer;
- while (TRUE) {
+ while (read_count < STRING_BUFSIZE - 1) {
retval = read(sockfd, pi, 1);
if(retval < 0)
ui_socket_error(errno);
|