1
0
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:
Laurent MONIN 2007-11-07 12:12:31 +01:00
parent cdda2f5acd
commit cfdbe749e8

View File

@ -330,7 +330,7 @@ read_from_popen(struct session *ses, unsigned char *handler, unsigned char *file
data->stream = stream; data->stream = stream;
if (filename) data->filename = stracpy(filename); if (filename) data->filename = stracpy(filename);
add_to_list(copiousoutput_data, data); 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); goto_url(ses, buf);
} }
} }