From 63416829eedfab2c33c6dfea8e59f153b79860f5 Mon Sep 17 00:00:00 2001 From: Elis Hirwing Date: Wed, 14 Nov 2018 13:33:02 +0100 Subject: [PATCH] Weather: fix out of bounds check --- statusscreen-weather.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/statusscreen-weather.go b/statusscreen-weather.go index 5a99bc1..7d7ab1e 100644 --- a/statusscreen-weather.go +++ b/statusscreen-weather.go @@ -23,7 +23,7 @@ func (weather *Weather) GetOutput() []string { parts := strings.Split(weather.lastResponse, "\n") - if len(parts) > 6 { + if len(parts) >= 37 { return parts[:37] }