aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/interface/efi/efi_debug.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/interface/efi/efi_debug.c b/src/interface/efi/efi_debug.c
index 1372776..ad79f0d 100644
--- a/src/interface/efi/efi_debug.c
+++ b/src/interface/efi/efi_debug.c
@@ -665,10 +665,10 @@ efi_pecoff_debug_name ( EFI_LOADED_IMAGE_PROTOCOL *loaded ) {
snprintf ( buf, sizeof ( buf ), "%s", name );
/* Strip file suffix, if present */
- if ( ( tmp = strrchr ( name, '.' ) ) != NULL )
+ if ( ( tmp = strrchr ( buf, '.' ) ) != NULL )
*tmp = '\0';
- return name;
+ return buf;
}
/**