mirror of
https://github.com/rkd77/elinks.git
synced 2024-10-01 03:36:26 -04:00
Use sizeof() instead hardcoded value in read_from_popen().
This commit is contained in:
parent
cdda2f5acd
commit
cfdbe749e8
@ -330,7 +330,7 @@ read_from_popen(struct session *ses, unsigned char *handler, unsigned char *file
|
||||
data->stream = stream;
|
||||
if (filename) data->filename = stracpy(filename);
|
||||
add_to_list(copiousoutput_data, data);
|
||||
snprintf(buf, 48, "file:///dev/fd/%d", fd);
|
||||
snprintf(buf, sizeof(buf), "file:///dev/fd/%d", fd);
|
||||
goto_url(ses, buf);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user