From afbb0f4886fa4a19a323e8103d8ff12b46e4b1d5 Mon Sep 17 00:00:00 2001 From: Qualys Security Advisory Date: Thu, 1 Jan 1970 00:00:00 +0000 Subject: [PATCH] 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 a45f8c9b..92aae3e4 100644 --- a/tload.c +++ b/tload.c @@ -81,7 +81,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) -- 2.40.0