Skip to content

Commit

Permalink
Triangle in support, fine tuning
Browse files Browse the repository at this point in the history
  • Loading branch information
NsCDE authored and ThomasAdam committed Sep 10, 2020
1 parent 22010dc commit 0a68f90
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions modules/FvwmButtons/parse.c
Original file line number Diff line number Diff line change
Expand Up @@ -427,7 +427,6 @@ static void ParsePanel(
int n;
char *instr = "in";
char *outstr = "out";
char *clear_comma;

while (*s && *s != ')')
{
Expand Down Expand Up @@ -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)
{
Expand Down

0 comments on commit 0a68f90

Please sign in to comment.