summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJavier Sánchez Parra <jsanchez@soleta.eu>2020-09-29 11:31:45 +0200
committerOpenGnSys Support Team <soporte-og@soleta.eu>2020-09-29 12:43:07 +0200
commita67f27a092d947c3d1eb57b02fc461dd855fbd45 (patch)
treefb8a93614a8de6fd5ab8c539aa7b1c2390f3b78f /src
parent403e7c323b3069c8c70088ded30de3096a216e3f (diff)
#1004 Fix integer overflow in datasize
ogClient datasize is now in bytes, update format to fix a possible overflow.
Diffstat (limited to 'src')
-rw-r--r--src/client.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client.c b/src/client.c
index 2b67e54..7c66a38 100644
--- a/src/client.c
+++ b/src/client.c
@@ -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);