diff --git a/src/raygui.h b/src/raygui.h index 3bb57b4..607248a 100644 --- a/src/raygui.h +++ b/src/raygui.h @@ -2784,7 +2784,7 @@ void GuiLoadStyle(const char *fileName) int fontSize = 0; char charmapFileName[256] = { 0 }; char fontFileName[256] = { 0 }; - sscanf(buffer, "f %d %s %[^\n]s", &fontSize, charmapFileName, fontFileName); + sscanf(buffer, "f %d %s %[^\r\n]s", &fontSize, charmapFileName, fontFileName); Font font = { 0 };