mirror of
https://github.com/nextcloud/desktop.git
synced 2025-10-26 11:17:43 +00:00
Fix call to atoll, just pass the buffer
This commit is contained in:
parent
e16560249c
commit
74c6426075
@ -800,10 +800,10 @@ csync_file_stat_t *csync_statedb_get_stat_by_inode(CSYNC *ctx, uint64_t inode) {
|
||||
/* clear the whole structure */
|
||||
ZERO_STRUCTP(st);
|
||||
|
||||
st->phash = atoll(result->vector[0], NULL, 10);
|
||||
st->phash = atoll(result->vector[0]);
|
||||
st->pathlen = atoi(result->vector[1]);
|
||||
memcpy(st->path, (len ? result->vector[2] : ""), len + 1);
|
||||
st->inode = atoll(result->vector[3], NULL, 10);
|
||||
st->inode = atoll(result->vector[3]);
|
||||
st->uid = atoi(result->vector[4]);
|
||||
st->gid = atoi(result->vector[5]);
|
||||
st->mode = atoi(result->vector[6]);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user