8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-23 04:03:04 +01:00
This commit is contained in:
robocop 2010-01-05 04:07:55 +00:00
parent 7de67d294d
commit c9ce3b2345

View File

@ -267,7 +267,7 @@ void IUTILS_truncate_term(TEXT* str, USHORT len)
* Truncates the rightmost contiguous spaces on a string.
* CVC: Notice isspace may be influenced by locales.
**************************************/
int i = len-1;
int i = len - 1;
while (i >= 0 && (isspace(UCHAR(str[i])) || (str[i] == 0)))
--i;
str[i + 1] = 0;