Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
TooTallNate committed Apr 9, 2024
1 parent eee2384 commit ce10f32
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/error.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ JSValue nx_throw_libnx_error(JSContext *ctx, Result rc, char *name)
u32 module = R_MODULE(rc);
u32 desc = R_DESCRIPTION(rc);
char message[256];
snprintf(message, 256, "%s failed (module: %u, description: %u)", name, module, desc);
snprintf(message, sizeof(message), "%s failed (module: %u, description: %u)", name, module, desc);
JS_DefinePropertyValueStr(ctx, err, "message", JS_NewString(ctx, message), JS_PROP_C_W);
JS_SetPropertyStr(ctx, err, "module", JS_NewUint32(ctx, module));
JS_SetPropertyStr(ctx, err, "description", JS_NewUint32(ctx, desc));
Expand Down

0 comments on commit ce10f32

Please sign in to comment.