mirror of https://git.48k.eu/ogserver
#1004 Fix integer overflow in datasize
ogClient datasize is now in bytes, update format to fix a possible overflow.master
parent
403e7c323b
commit
a67f27a092
|
@ -393,7 +393,7 @@ static int update_image_info(struct og_dbi *dbi, const char *image_id,
|
|||
result = dbi_conn_queryf(dbi->conn,
|
||||
"UPDATE imagenes"
|
||||
" SET clonator='%s', compressor='%s',"
|
||||
" filesystem='%s', datasize=%d"
|
||||
" filesystem='%s', datasize=%lld"
|
||||
" WHERE idimagen=%s", clonator, compressor, filesystem,
|
||||
datasize, image_id);
|
||||
|
||||
|
|
Loading…
Reference in New Issue