php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Return to Bug #60947
Patch ibase_db_info.patch revision 2012-02-01 10:41 UTC by a dot lukyanov at hostcomm dot ru

Patch ibase_db_info.patch for InterBase related Bug #60947

Patch version 2012-02-01 10:41 UTC

Return to Bug #60947 | Download this patch
Patch Revisions:

Developer: a.lukyanov@hostcomm.ru

--- php-5.2.17.orig/ext/interbase/ibase_service.c	2010-01-03 12:23:27.000000000 +0300
+++ php-5.2.17/ext/interbase/ibase_service.c	2012-01-31 20:57:38.000000000 +0400
@@ -321,8 +321,9 @@
 					heap_p = heap_buf + res_size;
 				}
 				result += 2;
-				snprintf(heap_p, heap_buf_size - (heap_buf - heap_p), "%s\n", result);
-				heap_p += line_len +2;
+				*(result+line_len) = 0;
+				snprintf(heap_p, heap_buf_size - (heap_p - heap_buf), "%s\n", result);
+				heap_p += line_len +1;
 				goto query_loop; /* repeat until result is exhausted */
 
 			case isc_info_svc_server_version:
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Dec 03 17:01:29 2024 UTC