From 39c35427549671fa76f52b2fe99bf7be57c51834 Mon Sep 17 00:00:00 2001 From: Qualys Security Advisory Date: Thu, 1 Jan 1970 00:00:00 +0000 Subject: [PATCH] 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." --- tload.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tload.c b/tload.c index b7dba650..25b3425e 100644 --- a/tload.c +++ b/tload.c @@ -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)