summaryrefslogtreecommitdiff
path: root/apps/debug_menu.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/debug_menu.c')
-rw-r--r--apps/debug_menu.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/apps/debug_menu.c b/apps/debug_menu.c
index 60594b677c..648a7e6cae 100644
--- a/apps/debug_menu.c
+++ b/apps/debug_menu.c
@@ -1910,8 +1910,7 @@ static int disk_callback(int btn, struct gui_synclist *lists)
1910 1910
1911 if (card->initialized > 0) 1911 if (card->initialized > 0)
1912 { 1912 {
1913 card_name[6] = '\0'; 1913 strlcpy(card_name, ((unsigned char*)card->cid) + 3, sizeof(card_name));
1914 strncpy(card_name, ((unsigned char*)card->cid) + 3, 6);
1915 simplelist_addline(SIMPLELIST_ADD_LINE, 1914 simplelist_addline(SIMPLELIST_ADD_LINE,
1916 "%s Rev %d.%d", card_name, 1915 "%s Rev %d.%d", card_name,
1917 (int) card_extract_bits(card->cid, 55, 4), 1916 (int) card_extract_bits(card->cid, 55, 4),