diff options
author | Liam Devine <dmail00@gmail.com> | 2011-07-04 23:31:14 +0100 |
---|---|---|
committer | Sam Roberts <vieuxtech@gmail.com> | 2012-04-11 13:33:34 -0700 |
commit | e15ed19db6eb3385c1b35219c2dfa11953c3d47e (patch) | |
tree | 4e38a0b05ac7cbaaa449f2b32dc959409ceae9ea /src/buffer.c | |
parent | a984607f28d0a802acaf1a16da225234af769baa (diff) | |
download | luasocket-e15ed19db6eb3385c1b35219c2dfa11953c3d47e.tar.gz luasocket-e15ed19db6eb3385c1b35219c2dfa11953c3d47e.tar.bz2 luasocket-e15ed19db6eb3385c1b35219c2dfa11953c3d47e.zip |
Compiles with Lua 5.1.4 and Lua 5.2.0-beta, although the makefile needs sorting out to take maybe a version number and also the local paths need removing.
Diffstat (limited to 'src/buffer.c')
-rw-r--r-- | src/buffer.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/buffer.c b/src/buffer.c index fbe00eb..8d90598 100644 --- a/src/buffer.c +++ b/src/buffer.c | |||
@@ -231,7 +231,7 @@ static int recvline(p_buffer buf, luaL_Buffer *b) { | |||
231 | pos = 0; | 231 | pos = 0; |
232 | while (pos < count && data[pos] != '\n') { | 232 | while (pos < count && data[pos] != '\n') { |
233 | /* we ignore all \r's */ | 233 | /* we ignore all \r's */ |
234 | if (data[pos] != '\r') luaL_putchar(b, data[pos]); | 234 | if (data[pos] != '\r') luaL_addchar(b, data[pos]); |
235 | pos++; | 235 | pos++; |
236 | } | 236 | } |
237 | if (pos < count) { /* found '\n' */ | 237 | if (pos < count) { /* found '\n' */ |