From d1cd17a9df7c37055e7b459f3a26a63200292bbc Mon Sep 17 00:00:00 2001 From: TuxSH <1922548+TuxSH@users.noreply.github.com> Date: Sun, 19 Jan 2020 16:56:29 +0000 Subject: [PATCH] thermosphere: fix fmt.c "l" handling --- thermosphere/src/fmt.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/thermosphere/src/fmt.c b/thermosphere/src/fmt.c index 36c0e9065..f35c676b7 100644 --- a/thermosphere/src/fmt.c +++ b/thermosphere/src/fmt.c @@ -206,7 +206,10 @@ int vsprintf(char *buf, const char *fmt, va_list args) fmt++; integerType = 1; } - + else + { + integerType = sizeof(unsigned long) == 8 ? 1 : 0; + } } else if(*fmt == 'h') {