summaryrefslogtreecommitdiffstats
path: root/stream.c
diff options
context:
space:
mode:
Diffstat (limited to 'stream.c')
-rw-r--r--stream.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/stream.c b/stream.c
index e337e523..be638608 100644
--- a/stream.c
+++ b/stream.c
@@ -313,7 +313,7 @@ static val string_in_get_line(val stream)
val pos = cdr(pair);
/* TODO: broken, should only scan to newline */
- if (lt(pos, length(string))) {
+ if (lt(pos, length_str(string))) {
val result = sub_str(string, pos, nil);
*cdr_l(pair) = length_str(string);
return result;