diff options
| author | Popa Adrian Marius <mariuz@php.net> | 2012-03-29 18:28:01 +0300 |
|---|---|---|
| committer | Popa Adrian Marius <mariuz@php.net> | 2012-03-29 18:28:01 +0300 |
| commit | 97f4fc22c576fcf8beeb3ee4474c00d074ba4bee (patch) | |
| tree | f00c7ff6f62c0726e70841004c65ecd3bbd0d622 /ext/interbase/ibase_service.c | |
| parent | c0f806a69c600996c9af4195f2136412160b0fc0 (diff) | |
| download | php-git-97f4fc22c576fcf8beeb3ee4474c00d074ba4bee.tar.gz | |
Fix firebird bug #60947 , tested and now it prints the header page information from database
Diffstat (limited to 'ext/interbase/ibase_service.c')
| -rw-r--r-- | ext/interbase/ibase_service.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/interbase/ibase_service.c b/ext/interbase/ibase_service.c index 6faaa564d5..1846b7416f 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: |
