fixed reading of longer settings file

pull/827/merge^2
Adrian Batzill 2019-07-13 12:55:54 +01:00
rodzic 6800e71652
commit db5bcdbe25
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -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())