Bug 1014103 - Fix XPCShellImpl.cpp/GetLine() to use 4096 byte buffer as its caller, r=bz

This commit is contained in:
Honza Bambas 2014-05-21 23:42:09 +02:00
parent 9cf011be5c
commit 9a3534f2f9

View File

@ -196,7 +196,7 @@ GetLocationProperty(JSContext *cx, HandleObject obj, HandleId id, MutableHandleV
static bool
GetLine(JSContext *cx, char *bufp, FILE *file, const char *prompt) {
{
char line[256] = { '\0' };
char line[4096] = { '\0' };
fputs(prompt, gOutFile);
fflush(gOutFile);
if ((!fgets(line, sizeof line, file) && errno != EINTR) || feof(file))