1
0
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:
Stefan Esser
2002-12-12 21:31:57 +00:00
parent 7095c25d75
commit f65be7ff50

View File

@@ -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 */