--- embedaddon/php/ext/interbase/ibase_service.c 2012/02/21 23:47:56 1.1 +++ embedaddon/php/ext/interbase/ibase_service.c 2012/05/29 12:34:40 1.1.1.2 @@ -16,7 +16,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: ibase_service.c,v 1.1 2012/02/21 23:47:56 misho Exp $ */ +/* $Id: ibase_service.c,v 1.1.1.2 2012/05/29 12:34:40 misho Exp $ */ #ifdef HAVE_CONFIG_H #include "config.h" @@ -321,6 +321,7 @@ query_loop: heap_p = heap_buf + res_size; } result += 2; + *(result+line_len) = 0; snprintf(heap_p, heap_buf_size - (heap_buf - heap_p), "%s\n", result); heap_p += line_len +2; goto query_loop; /* repeat until result is exhausted */