0012-tload: Call longjmp() 1 instead of 0.

Do it explicitly instead of the implicit "longjmp() cannot cause 0 to be
returned. If longjmp() is invoked with a second argument of 0, 1 will be
returned instead."
This commit is contained in:
Qualys Security Advisory 1970-01-01 00:00:00 +00:00 committed by Craig Small
parent fdc2af1114
commit 39c3542754

View File

@ -80,7 +80,7 @@ static void setsize(int i)
memset(screen, ' ', scr_size - 1);
*(screen + scr_size - 2) = '\0';
if (i)
longjmp(jb, 0);
longjmp(jb, 1);
}
static void __attribute__ ((__noreturn__)) usage(FILE * out)