From 328fa71222899e3153aef82707358c8facae8a05 Mon Sep 17 00:00:00 2001 From: Timo Korvola Date: Sun, 11 Mar 2018 22:25:46 +0200 Subject: [PATCH] Fix eternal loop in sf_GetProfileString. --- src/sdl/sf_util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sdl/sf_util.c b/src/sdl/sf_util.c index 175b703..57cc7dd 100644 --- a/src/sdl/sf_util.c +++ b/src/sdl/sf_util.c @@ -831,7 +831,7 @@ char * sf_GetProfileString( const char *sect, const char *id, char * def) if (p) { int quoted = 0; - while (*p) + for (; *p; p++) { if (*p == '\"') { quoted = 1; p++; break;} if ((byte)(*p) > ' ') break; -- 2.34.1