From d36af32b6aec5ad5d12527d5899ff0d11d90b5a5 Mon Sep 17 00:00:00 2001 From: su8 Date: Sat, 18 Nov 2017 18:33:00 +0200 Subject: [PATCH] Update weather.c --- src/weather.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/weather.c b/src/weather.c index 39a1d35..8c29f66 100644 --- a/src/weather.c +++ b/src/weather.c @@ -76,6 +76,7 @@ read_curl_data_cb(char *data, size_t size, size_t nmemb, char *str1) { if (0 == got_temp) { if ('e' == *(ptr+1) && 'm' == *(ptr+2) && 'p' == *(ptr+3)) { if ('-' == *(ptr+6)) { + *str1++ = '-'; if (0 != (isdigit((unsigned char) *(ptr+7)))) { *str1++ = *(ptr+7); if (0 != (isdigit((unsigned char) *(ptr+8)))) { -- 2.11.0