From 57240b0f06551a49c94f90abccc54767c738791e Mon Sep 17 00:00:00 2001 From: ptitSeb Date: Mon, 6 Mar 2023 21:53:20 +0100 Subject: [PATCH] Fixed an issue with gl4es_prev_str function (for #419) --- src/gl/string_utils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gl/string_utils.c b/src/gl/string_utils.c index b8ffbea63..fb048247e 100644 --- a/src/gl/string_utils.c +++ b/src/gl/string_utils.c @@ -180,7 +180,7 @@ char* gl4es_prev_str(char* Str, char* pBuffer) { --pBuffer; } while(gl4es_is_blank(*pBuffer) && (pBuffer!=Str)); // go to blank - while((pBuffer!=Str) && !gl4es_is_blank(*(pBuffer-1))); + while((pBuffer!=Str) && !gl4es_is_blank(*(pBuffer-1))) --pBuffer; return pBuffer; }