# HG changeset patch # User Olaf Wintermann # Date 1504802571 -7200 # Node ID cbea102875a86b146633834430fa0bf48ef0985d # Parent dd5c0ebdf54fe1f988546b1bd534c151b31834f2 bug fix: file size > 2gb not loaded correctly from database this bug results in large files always pushed, even if they are unmodified diff -r dd5c0ebdf54f -r cbea102875a8 dav/db.c --- a/dav/db.c Tue Sep 05 12:00:49 2017 +0200 +++ b/dav/db.c Thu Sep 07 18:42:51 2017 +0200 @@ -152,7 +152,13 @@ break; } case 3: { - res->size = atoi((char*)value); + res->size = 0; + int64_t filelen = 0; + if(util_strtoint((char*)value, &filelen)) { + if(filelen > 0) { + res->size = (size_t)filelen; + } + } break; } }