u2f: prevent clipping of initialization prompt
What changed, and why it matters
This commit fixes a visual text layout issue on the BitBox02 device screen. The message telling users to initialize the device with the BitBoxApp before using U2F was being cut off or clipped because it was too long for one line. The fix splits the text across three shorter lines so it displays correctly. There is no security vulnerability here.
No security action required. This is a cosmetic/UI fix. Treat as a normal quality improvement.
Security signals we found
No strong security signals were identified.
Evidence from the diff
The change updates the English locale string and its matching lookup key in src/u2f.c from ‘Initialize with BitBoxApp\nto use U2F’ to ‘Initialize with\nBitBoxApp\nto use U2F’. This is purely a UI string formatting adjustment to prevent the initialization prompt from being clipped on the device’s display. No code logic, cryptographic operations, or security boundaries are modified.
Changed components
src/i18n/locales/en/firmware.jsonsrc/u2f.cInspect captured patch +2 / −2
### src/i18n/locales/en/firmware.json
@@ -309,7 +309,7 @@
},
"u2f": {
"auth": "U2F auth",
- "initializeWithBitBoxApp": "Initialize with BitBoxApp\nto use U2F",
+ "initializeWithBitBoxApp": "Initialize with\nBitBoxApp\nto use U2F",
"refreshWebpage": "Refresh webpage",
"register": "U2F register",
"unknownSite": "Unknown site:",
### src/u2f.c
@@ -199,7 +199,7 @@ static void _create_nudge_label(void)
char initialize_with_bitboxapp[64] = {0};
rust_i18n_translate_copy(
- "Initialize with BitBoxApp\nto use U2F",
+ "Initialize with\nBitBoxApp\nto use U2F",
initialize_with_bitboxapp,
sizeof(initialize_with_bitboxapp));
_nudge_label = info_centered_create(initialize_with_bitboxapp, _nudge_label_cb);Why this scored 15/100
Community notes
Notes can correct, qualify, or add evidence to the AI analysis. Every note shown here has been validated by a human moderator.
The AI analysis stands alone for now. Submit a note if you can add evidence or important context.