From 6a1d35cb3a6f9bfdff7386779f6e7d9af77dd745 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pali=20Roh=C3=A1r?= Date: Sat, 15 Apr 2023 18:28:03 +0200 Subject: [PATCH] fiasco: Add .txt filename extension when unpacking mmc layout file --- src/fiasco.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/fiasco.c b/src/fiasco.c index c8b8af5..52ec31b 100644 --- a/src/fiasco.c +++ b/src/fiasco.c @@ -632,13 +632,13 @@ int fiasco_unpack(struct fiasco * fiasco, const char * dir) { if ( ! name ) ALLOC_ERROR_RETURN(-1); - layout_name = calloc(1, strlen(name) + sizeof("_layout")-1 + 1); + layout_name = calloc(1, strlen(name) + sizeof("_layout.txt")-1 + 1); if ( ! layout_name ) { free(name); ALLOC_ERROR_RETURN(-1); } - sprintf(layout_name, "%s_layout", name); + sprintf(layout_name, "%s_layout.txt", name); free(name); printf(" Layout file: %s\n", layout_name);