diff options
| author | Paul Buetow (europa) <paul@buetow.org> | 2015-06-01 23:14:06 +0100 |
|---|---|---|
| committer | Paul Buetow (europa) <paul@buetow.org> | 2015-06-01 23:14:06 +0100 |
| commit | 42eceb675e414dbff94178c02d797d2cff8a33ee (patch) | |
| tree | 402a5f8d596db074b9af97281903a71032cac1ed | |
| parent | e669582aceef67f9e36b20796f1ee3d139e991af (diff) | |
Fix spaces in cmdline
| -rw-r--r-- | utils/utils.go | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/utils/utils.go b/utils/utils.go index f80e09a..1529136 100644 --- a/utils/utils.go +++ b/utils/utils.go @@ -10,7 +10,13 @@ func Slurp(what *string, path string) error { if err != nil { return err } else { - *what = string(bytes) + for _, byte := range bytes { + if byte == 0 { + *what += " " + } else { + *what += string(byte) + } + } } return nil } |
