summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2016-01-26 20:10:32 -0800
committerOri Bernstein <ori@eigenstate.org>2016-01-26 20:10:32 -0800
commit0cc2e13e08c6812fb2a70aae573d0f2e198ea63c (patch)
treed2ee217a16a12b0c8b5ab4f8605bc7ab536e1b12
parent555658791708fca90cbe2f8fd1bc1ce2a6a1b3ab (diff)
downloadmc-0cc2e13e08c6812fb2a70aae573d0f2e198ea63c.tar.gz
Fix inifile test.
This was broken when removing the '$' operator.
-rw-r--r--lib/inifile/parse.myr2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/inifile/parse.myr b/lib/inifile/parse.myr
index 4b36ad0..33b5bae 100644
--- a/lib/inifile/parse.myr
+++ b/lib/inifile/parse.myr
@@ -108,7 +108,7 @@ const parsesection = {p, ini, ln
-> false
;;
std.slfree(p.sect)
- p.sect = std.sldup(std.strstrip(ln[1:]))
+ p.sect = std.sldup(std.strstrip(ln[1:idx]))
| `std.None:
p.err = `std.Some (`Parseerr p.line)
-> false