Skip to content

Commit

Permalink
Fixed an issue with gl4es_prev_str function (for #419)
Browse files Browse the repository at this point in the history
  • Loading branch information
ptitSeb committed Mar 6, 2023
1 parent b3034e6 commit 57240b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gl/string_utils.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 57240b0

Please sign in to comment.