From beb4523b842ccc9ce4dc854b0b39d4a3b442127d Mon Sep 17 00:00:00 2001 From: Philipp Schafft Date: Sat, 16 Jun 2018 17:29:51 +0000 Subject: [PATCH] Cleanup: Replaced magic number with sizeof() --- src/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.c b/src/main.c index fe12b3a1..a971a858 100644 --- a/src/main.c +++ b/src/main.c @@ -499,7 +499,7 @@ int main(int argc, char **argv) /* parse the '-c icecast.xml' option ** only, so that we can read a configfile */ - res = _parse_config_opts(argc, argv, filename, 512); + res = _parse_config_opts(argc, argv, filename, sizeof(filename)); if (res == 1) { #if !defined(_WIN32) || defined(_CONSOLE) || defined(__MINGW32__) || defined(__MINGW64__) /* startup all the modules */