1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-07-01 02:05:33 +00: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;
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);
}
}