summaryrefslogtreecommitdiff
path: root/lib/std/slurp.myr
diff options
context:
space:
mode:
authorandrewc <andrewchamberss@gmail.com>2016-02-05 17:32:18 +1300
committerAndrew Chambers <andrewchamberss@gmail.com>2016-02-05 18:55:59 +1300
commite506b713ad0766bf7eb182325cba64fd6931c1cc (patch)
tree227c69546e86f113c301605f511833691477eb89 /lib/std/slurp.myr
parent4fd76bb3f5d16488d7b50a5ef1b7674537889e06 (diff)
downloadmc-e506b713ad0766bf7eb182325cba64fd6931c1cc.tar.gz
change slgrow to take a pointer
Diffstat (limited to 'lib/std/slurp.myr')
-rw-r--r--lib/std/slurp.myr2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/std/slurp.myr b/lib/std/slurp.myr
index bda1383..c0e417c 100644
--- a/lib/std/slurp.myr
+++ b/lib/std/slurp.myr
@@ -39,7 +39,7 @@ const fslurp = {fd
len += n
if len + 2*n >= bufsz
bufsz *= 2
- buf = slgrow(buf, bufsz)
+ slgrow(&buf, bufsz)
;;
| `Fail e:
slfree(buf)