com php-src: Fix firebird bug #60947 , tested and now it prints the header page information from database: ext/interbase/ibase_service .c
| From: | Popa Adrian Marius | Date: | Thu, 29 Mar 2012 15:28:01 +0000 |
| Subject: | com php-src: Fix firebird bug #60947 , tested and now it prints the header page information from database: ext/interbase/ibase_service .c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-68633@lists.php.net to get a copy of this message | ||
Commit: 97f4fc22c576fcf8beeb3ee4474c00d074ba4bee
Author: Popa Adrian Marius <mariuz@php.net> Thu, 29 Mar 2012 18:28:01 +0300
Parents: c0f806a69c600996c9af4195f2136412160b0fc0
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=97f4fc22c576fcf8beeb3ee4474c00d074ba4bee
Log:
Fix firebird bug #60947 , tested and now it prints the header page information from database
Bugs:
https://bugs.php.net/60947
Changed paths:
M ext/interbase/ibase_service.c
Diff:
diff --git a/ext/interbase/ibase_service.c b/ext/interbase/ibase_service.c
index 6faaa56..1846b74 100644
--- a/ext/interbase/ibase_service.c
+++ b/ext/interbase/ibase_service.c
@@ -322,8 +322,8 @@ query_loop:
}
result += 2;
*(result+line_len) = 0;
- snprintf(heap_p, heap_buf_size - (heap_buf - heap_p), "%s\n", result);
- heap_p += line_len +2;
+ 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: