From 567f7fe50656fc1a2ddd40cbb7d28244ed8b10af Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Fri, 3 May 2024 11:42:11 +0200 Subject: [FUSE] Fix printf length --- src/fuse/cowfile.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/fuse/cowfile.c b/src/fuse/cowfile.c index 82c7af7..dfa414e 100644 --- a/src/fuse/cowfile.c +++ b/src/fuse/cowfile.c @@ -1023,7 +1023,7 @@ bool cowfile_init( char *path, const char *image_Name, uint16_t imageVersion, } if ( cowUuid != NULL ) { - snprintf( metadata->uuid, UUID_STRLEN, "%s", cowUuid ); + snprintf( metadata->uuid, sizeof(metadata->uuid), "%s", cowUuid ); logadd( LOG_INFO, "Using provided upload session id" ); } else if ( !createSession( image_Name, imageVersion ) ) { return false; @@ -1142,7 +1142,7 @@ bool cowfile_load( char *path, atomic_uint_fast64_t **imageSizePtr, char *server if ( cowUuid != NULL ) { logadd( LOG_INFO, "Overriding stored upload session id with provided one" ); - snprintf( metadata->uuid, UUID_STRLEN, "%s", cowUuid ); + snprintf( metadata->uuid, sizeof(metadata->uuid), "%s", cowUuid ); } *imageSizePtr = &metadata->imageSize; -- cgit v1.2.3-55-g7522