mirror of
https://github.com/php/php-src.git
synced 2026-03-28 02:02:32 +01:00
MFH: finally?! correct
This commit is contained in:
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user