diff options
author | Stefan Esser <sesser@php.net> | 2002-12-12 21:30:39 +0000 |
---|---|---|
committer | Stefan Esser <sesser@php.net> | 2002-12-12 21:30:39 +0000 |
commit | 7924bf8705be460d9eba56510725e37e8c8337af (patch) | |
tree | cc2d5b1560a24435e515a38f5f65a8a55dcbed2d /ext/sybase/php_sybase_db.c | |
parent | 7a282ddcfd28a9c1411dd81079591b085e56271f (diff) | |
download | php-git-7924bf8705be460d9eba56510725e37e8c8337af.tar.gz |
remove extra char in case of binary/money fields
Diffstat (limited to 'ext/sybase/php_sybase_db.c')
-rw-r--r-- | ext/sybase/php_sybase_db.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/sybase/php_sybase_db.c b/ext/sybase/php_sybase_db.c index b6db930522..651b0cecd3 100644 --- a/ext/sybase/php_sybase_db.c +++ b/ext/sybase/php_sybase_db.c @@ -747,7 +747,7 @@ static void php_sybase_get_column_content(sybase_link *sybase_ptr,int offset,pva /* get rid of trailing spaces */ p = res_buf + res_length; - while (p >= res_buf && *p == ' ') { + while (p >= res_buf && (*p == ' ' || *p == '\0')) { p--; } *(++p) = 0; /* put a trailing NULL */ |