Skip to content

Commit 43aa10b

Browse files
authored
Fix -Wformat-truncation warning in qjsc (#1025)
Fixes: #1022
1 parent 9de7277 commit 43aa10b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

qjsc.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ JSModuleDef *jsc_module_loader(JSContext *ctx,
237237
size_t buf_len;
238238
uint8_t *buf;
239239
JSValue func_val;
240-
char cname[1024];
240+
char cname[1000];
241241

242242
buf = js_load_file(ctx, &buf_len, module_name);
243243
if (!buf) {

0 commit comments

Comments
 (0)