From db5bcdbe25f376f20afd6188cd232ee9ecde4294 Mon Sep 17 00:00:00 2001 From: Adrian Batzill Date: Sat, 13 Jul 2019 12:55:54 +0100 Subject: [PATCH] fixed reading of longer settings file --- main/gen_gdl90.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main/gen_gdl90.go b/main/gen_gdl90.go index e778577e..e9bec0eb 100644 --- a/main/gen_gdl90.go +++ b/main/gen_gdl90.go @@ -1269,7 +1269,7 @@ func readSettings() { return } defer fd.Close() - buf := make([]byte, 1024) + buf := make([]byte, 2048) count, err := fd.Read(buf) if err != nil { log.Printf("can't read settings %s: %s\n", configLocation, err.Error())