Skip to content

Commit

Permalink
fixed a stupid bug
Browse files Browse the repository at this point in the history
  • Loading branch information
justanhduc committed Nov 4, 2021
1 parent 162fcd4 commit f053052
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jobs.c
Original file line number Diff line number Diff line change
Expand Up @@ -1600,7 +1600,7 @@ void s_get_env(int s, int size) {
char *val = getenv(var);
struct Msg m;
m.type = LIST_LINE;
m.u.size = val ? sizeof(val) + 1 : 0;
m.u.size = val ? strlen(val) + 1 : 0;
send_msg(s, &m);
if (val)
send_bytes(s, val, m.u.size);
Expand Down

0 comments on commit f053052

Please sign in to comment.