From f65be7ff50c2bf4be5cdc16e6ce152a24bf11086 Mon Sep 17 00:00:00 2001 From: Stefan Esser Date: Thu, 12 Dec 2002 21:31:57 +0000 Subject: [PATCH] MFH: finally?! correct --- ext/sybase/php_sybase_db.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 */ -- 2.50.1