mirror of
https://github.com/fluencelabs/redis
synced 2025-03-19 17:10:50 +00:00
syncReadLine(): actually enforce buffer size limits.
This commit is contained in:
parent
5ee2ccf48e
commit
f70369335d
@ -139,6 +139,7 @@ ssize_t syncReadLine(int fd, char *ptr, ssize_t size, long long timeout) {
|
|||||||
*ptr = '\0';
|
*ptr = '\0';
|
||||||
nread++;
|
nread++;
|
||||||
}
|
}
|
||||||
|
size--;
|
||||||
}
|
}
|
||||||
return nread;
|
return nread;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user