summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/str.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/str.go b/lib/str.go
index 6ba9507..bc25e2d 100644
--- a/lib/str.go
+++ b/lib/str.go
@@ -51,6 +51,9 @@ func StripSpaceChars(s string) string {
if s[i] == '\n' {
continue
}
+ if s[i] == 0 { // NUL character
+ continue
+ }
ss += string(s[i])
}
return ss