Skip to content

Commit

Permalink
i-lut: fix newline in gui message
Browse files Browse the repository at this point in the history
  • Loading branch information
hanatos committed Sep 29, 2024
1 parent b1349e2 commit cef75a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pipe/modules/i-lut/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ read_header(
return 0;
error:
fprintf(stderr, "[i-lut] %"PRItkn" could not load file `%s'!\n", dt_token_str(mod->inst), filename);
if(snprintf(lut->errormsg, sizeof(lut->errormsg), "i-lut: %"PRItkn" could not load file `%s'!\n", dt_token_str(mod->inst), filename) >= sizeof(lut->errormsg))
if(snprintf(lut->errormsg, sizeof(lut->errormsg), "i-lut: %"PRItkn" could not load file `%s'!", dt_token_str(mod->inst), filename) >= sizeof(lut->errormsg))
fprintf(stderr, "\n"); // fuck you gcc
mod->graph->gui_msg = lut->errormsg;
lut->filename[0] = 0;
Expand Down

0 comments on commit cef75a3

Please sign in to comment.