From: Eero Tamminen Date: Mon, 19 Sep 2022 14:08:46 +0000 (+0300) Subject: gpu_sysman: use sstrdup() instead of strdup() X-Git-Tag: 6.0.0-rc0~102 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a06f5db887132eb36cc33c92fc6c79476b7b1661;p=thirdparty%2Fcollectd.git gpu_sysman: use sstrdup() instead of strdup() Signed-off-by: Eero Tamminen --- diff --git a/src/gpu_sysman.c b/src/gpu_sysman.c index 8018a8e48..68666c53b 100644 --- a/src/gpu_sysman.c +++ b/src/gpu_sysman.c @@ -2023,7 +2023,7 @@ static int gpu_config_parse(const char *key, const char *value) { } else if (strcasecmp(key, KEY_METRICS_OUTPUT) == 0) { config.output = 0; static const char delim[] = ",:/ "; - char *save, *flag, *flags = strdup(value); + char *save, *flag, *flags = sstrdup(value); for (flag = strtok_r(flags, delim, &save); flag; flag = strtok_r(NULL, delim, &save)) { unsigned i;