From 7924bf8705be460d9eba56510725e37e8c8337af Mon Sep 17 00:00:00 2001 From: Stefan Esser Date: Thu, 12 Dec 2002 21:30:39 +0000 Subject: remove extra char in case of binary/money fields --- ext/sybase/php_sybase_db.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ext/sybase/php_sybase_db.c') 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 */ -- cgit v1.2.1