1
0
mirror of https://github.com/fluencelabs/redis synced 2025-07-31 16:31:58 +00:00

syncReadLine(): actually enforce buffer size limits.

This commit is contained in:
antirez
2014-10-16 17:35:11 +02:00
parent 89f82a25e1
commit adf55b2337

@@ -139,6 +139,7 @@ ssize_t syncReadLine(int fd, char *ptr, ssize_t size, long long timeout) {
*ptr = '\0';
nread++;
}
size--;
}
return nread;
}