diff options
Diffstat (limited to 'src/fiasco.c')
-rw-r--r-- | src/fiasco.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fiasco.c b/src/fiasco.c index 0c404bc..74d089f 100644 --- a/src/fiasco.c +++ b/src/fiasco.c @@ -495,7 +495,7 @@ int fiasco_unpack(struct fiasco * fiasco, const char * dir) { if ( image->layout ) { - layout_name = calloc(1, strlen(name) + strlen(".layout") + 1); + layout_name = calloc(1, strlen(name) + sizeof(".layout")-1 + 1); if ( ! layout_name ) { free(name); ALLOC_ERROR_RETURN(-1); |