bugfix: Issue #60

This commit is contained in:
云风
2013-12-30 19:48:30 +08:00
parent 8274709924
commit 6e3ef7fe09

View File

@@ -447,6 +447,9 @@ static void
_get_buffer(lua_State *L, struct read_block *rb, int len) {
char tmp[len];
char * p = rb_read(rb,tmp,len);
if (p == NULL) {
_invalid_stream(L,rb);
}
lua_pushlstring(L,p,len);
}