chore: fix some minor issues in the comments
What changed, and why it matters
This commit only fixes spelling mistakes inside code comments (for example, changing 'sufficent' to 'sufficient' and 'Explcitly' to 'Explicitly'). No actual program instructions were changed, so it cannot affect security or functionality.
No action needed; this is a cosmetic documentation-quality commit.
Security signals we found
No strong security signals were identified.
Evidence from the diff
The diff is a pure comment-only cleanup across six C source files. Every change is inside a C-style comment (‘// …’) and alters only spelling/typography. No executable code, data structures, constants, control flow, or memory allocations were modified.
Changed components
Inspect captured patch +8 / −8
diff --git a/main/bcur.c b/main/bcur.c
index 128cab1..5aed1f6 100644
--- a/main/bcur.c
+++ b/main/bcur.c
@@ -302,7 +302,7 @@ bool bcur_build_cbor_bytes(const uint8_t* data, const size_t data_len, uint8_t**
JADE_INIT_OUT_SIZE(output_len);
// Format as simple cbor message containing only bytes
- const size_t buflen = data_len + 8; // sufficent for cbor overhead
+ const size_t buflen = data_len + 8; // sufficient for cbor overhead
uint8_t* buf = JADE_MALLOC_PREFER_SPIRAM(buflen);
CborEncoder root_encoder;
cbor_encoder_init(&root_encoder, buf, buflen, 0);
diff --git a/main/process/pinclient.c b/main/process/pinclient.c
index b74e868..b6f6813 100644
--- a/main/process/pinclient.c
+++ b/main/process/pinclient.c
@@ -90,7 +90,7 @@ static void send_http_request_reply(jade_process_t* process, const char* documen
size_t urlA_len = 0;
const bool urlASet = storage_get_pinserver_urlA(urlbuf, sizeof(urlbuf), &urlA_len);
if (urlASet && urlA_len <= 1) {
- // Explcitly no url
+ // Explicitly no url
urlA[0] = '\0';
} else {
urlA_len = snprintf(urlA, sizeof(urlA), "%s/%s", urlASet ? urlbuf : PINSERVER_URL, document);
@@ -102,7 +102,7 @@ static void send_http_request_reply(jade_process_t* process, const char* documen
size_t urlB_len = 0;
const bool urlBSet = storage_get_pinserver_urlB(urlbuf, sizeof(urlbuf), &urlB_len);
if (urlBSet && urlB_len <= 1) {
- // Explcitly no second url
+ // Explicitly no second url
urlB[0] = '\0';
} else {
urlB_len = snprintf(urlB, sizeof(urlB), "%s/%s", urlBSet ? urlbuf : PINSERVER_ONION, document);
diff --git a/main/process/process_utils.c b/main/process/process_utils.c
index 148f9aa..66756d2 100644
--- a/main/process/process_utils.c
+++ b/main/process/process_utils.c
@@ -462,7 +462,7 @@ void update_aggregate_scripts_flavour(
// First script sets the 'aggregate_scripts_flavour'
*aggregate_scripts_flavour = new_script_flavour;
} else if (*aggregate_scripts_flavour != new_script_flavour) {
- // As soon as we see something differet, set to 'mixed'
+ // As soon as we see something different, set to 'mixed'
*aggregate_scripts_flavour = SCRIPT_FLAVOUR_MIXED;
}
}
diff --git a/main/process/register_multisig.c b/main/process/register_multisig.c
index 3d964cd..eb78877 100644
--- a/main/process/register_multisig.c
+++ b/main/process/register_multisig.c
@@ -283,7 +283,7 @@ int register_multisig_file(const char* multisig_file, const size_t multisig_file
size_t name_len = 0;
size_t value_len = 0;
- char value[128]; // should be sufficent for all valid values - eg. xpub
+ char value[128]; // should be sufficient for all valid values - eg. xpub
if (!split_line(read_ptr, eol, &name_len, value, sizeof(value), &value_len) || !value_len) {
JADE_LOGE("Failed to process multisig file line: %.*s", eol - read_ptr, read_ptr);
*errmsg = "Invalid multisig file";
@@ -500,7 +500,7 @@ int register_multisig_file(const char* multisig_file, const size_t multisig_file
}
// Done - this signer complete
- // Explcitly set no additional path
+ // Explicitly set no additional path
signers[isigner].path_is_string = false;
signers[isigner].path_len = 0;
++isigner;
diff --git a/main/process/sign_tx.c b/main/process/sign_tx.c
index 87fe2da..26011a2 100644
--- a/main/process/sign_tx.c
+++ b/main/process/sign_tx.c
@@ -131,7 +131,7 @@ static bool params_signing_outputs(jade_process_t* process, const CborValue* par
JADE_LOGD("Output %u has output/change data passed", i);
// For backward-compatibility reasons we assume all populated items
- // are change unless told otherwise (ie. explcit is_change: false)
+ // are change unless told otherwise (ie. explicit is_change: false)
bool is_change = true;
rpc_get_boolean("is_change", &arrayItem, &is_change);
diff --git a/main/ui/dialogs.c b/main/ui/dialogs.c
index 8911eed..11c6757 100644
--- a/main/ui/dialogs.c
+++ b/main/ui/dialogs.c
@@ -78,7 +78,7 @@ void add_button(gui_view_node_t* parent, btn_data_t* btn_info)
}
gui_set_parent(btn, parent);
- // If borders explcitly specified, show in dark grey
+ // If borders explicitly specified, show in dark grey
// 0 implies default behaviour - no visible borders when not selected
if (btn_info->borders) {
gui_set_borders(btn, GUI_BLOCKSTREAM_BUTTONBORDER_GREY, 1, btn_info->borders);
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.