From 74c5b232954e30eba1229368fcf83e598621a149 Mon Sep 17 00:00:00 2001 From: Dmitry Sidorov-Biryukov <99192142+msbdd@users.noreply.github.com> Date: Tue, 23 Dec 2025 14:10:15 +0100 Subject: [PATCH] Fix streamlist file parsing for Windows --- config.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config.c b/config.c index 2b92ede..2b65de5 100644 --- a/config.c +++ b/config.c @@ -94,7 +94,7 @@ sl_add_streamlist_file (SLCD *slconn, const char *streamfile, if ((cp = strchr (line, '\r')) != NULL || (cp = strchr (line, '\n')) != NULL) *cp = '\0'; - fields = sscanf (line, "%63s %199c", stationid, selectors); + fields = sscanf (line, "%63s %199[^\r\n]", stationid, selectors); /* Skip blank or comment lines */ if (fields <= 0 || stationid[0] == '#')