mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-30 18:32:44 +03:00
exclude: Try another fix for NULL termination.
Hopefully Coverity understand this better. CID: #996807
This commit is contained in:
parent
b3bf209ca0
commit
7247eed4ac
1 changed files with 1 additions and 1 deletions
|
@ -98,12 +98,12 @@ int csync_exclude_load(CSYNC *ctx, const char *fname) {
|
|||
rc = -1;
|
||||
goto out;
|
||||
}
|
||||
memset(buf, 0, size + 1);
|
||||
|
||||
if (read(fd, buf, size) != size) {
|
||||
rc = -1;
|
||||
goto out;
|
||||
}
|
||||
buf[size] = '\0';
|
||||
|
||||
/* FIXME: Use fgets and don't add duplicates */
|
||||
entry = buf;
|
||||
|
|
Loading…
Reference in a new issue