mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Check if all required bytes were read
Fixes CID 350077 Signed-off-by: Robert C. Helling <helling@atdotde.de>
This commit is contained in:
parent
08cb521cf2
commit
c2d5de207d
1 changed files with 1 additions and 1 deletions
|
@ -603,7 +603,7 @@ static bool uemis_get_answer(const char *path, char *request, int n_param_in,
|
|||
free(ans_path);
|
||||
return false;
|
||||
}
|
||||
if (read(ans_file, tmp, 100) < 0) {
|
||||
if (read(ans_file, tmp, 100) < 3) {
|
||||
free(ans_path);
|
||||
close(ans_file);
|
||||
return false;
|
||||
|
|
Loading…
Add table
Reference in a new issue