From 0a68f90d8c96839960eaf154a43301800e5fb4bb Mon Sep 17 00:00:00 2001 From: Hegel3DReloaded Date: Thu, 10 Sep 2020 13:44:11 +0200 Subject: [PATCH] Triangle in support, fine tuning --- modules/FvwmButtons/parse.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/modules/FvwmButtons/parse.c b/modules/FvwmButtons/parse.c index 2cb054f2f..6873ff9af 100644 --- a/modules/FvwmButtons/parse.c +++ b/modules/FvwmButtons/parse.c @@ -427,7 +427,6 @@ static void ParsePanel( int n; char *instr = "in"; char *outstr = "out"; - char *clear_comma; while (*s && *s != ')') { @@ -522,11 +521,7 @@ static void ParsePanel( sscanf(s, "%d %s%n", indicator_size, indicator_in_out, &n); /* Remove comma from %s of sscanf */ - clear_comma = strchr(indicator_in_out, ','); - if (clear_comma != NULL) - { - *clear_comma = '\0'; - } + indicator_in_out[strcspn(indicator_in_out, ",")] = '\0'; if (*indicator_in_out == *instr) {