Skip to content

Commit

Permalink
cmdline: do not write NUL byte to GUI bootstrap script
Browse files Browse the repository at this point in the history
Fixes #628
  • Loading branch information
cebtenzzre committed Aug 3, 2023
1 parent dc923ed commit e811a34
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/cmdline.c
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ static void rm_cmd_start_gui(int argc, const char **argv) {
return;
}

if(write(bootstrap_fd, RM_PY_BOOTSTRAP, sizeof(RM_PY_BOOTSTRAP)) < 0) {
if(write(bootstrap_fd, RM_PY_BOOTSTRAP, strlen(RM_PY_BOOTSTRAP)) < 0) {
rm_log_warning_line("Could not bootstrap gui: Unable to write to tempfile: %s",
g_strerror(errno));
return;
Expand Down

0 comments on commit e811a34

Please sign in to comment.