summaryrefslogtreecommitdiff
path: root/dwmblocks.c
diff options
context:
space:
mode:
authorLuke Smith <luke@lukesmith.xyz>2020-04-13 01:05:25 -0400
committerLuke Smith <luke@lukesmith.xyz>2020-04-13 01:05:25 -0400
commit29485b43b0712062a0ccb99a1301ef071252a95e (patch)
tree0f79a567291a864cb4c5dd50d3bc13b521a09a04 /dwmblocks.c
parent730022acdf3c8334030d755fc70a21d72ebffcc8 (diff)
downloaddwmblocks-29485b43b0712062a0ccb99a1301ef071252a95e.tar.gz
dwmblocks-29485b43b0712062a0ccb99a1301ef071252a95e.tar.bz2
dwmblocks-29485b43b0712062a0ccb99a1301ef071252a95e.zip
no longer (unused) icon slot
Diffstat (limited to 'dwmblocks.c')
-rw-r--r--dwmblocks.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/dwmblocks.c b/dwmblocks.c
index 0cd0b54..7d7a564 100644
--- a/dwmblocks.c
+++ b/dwmblocks.c
@@ -8,7 +8,6 @@
#define CMDLENGTH 50
typedef struct {
- char* icon;
char* command;
unsigned int interval;
unsigned int signal;
@@ -56,7 +55,6 @@ void getcmd(const Block *block, char *output)
output[0] = block->signal;
output++;
}
- strcpy(output, block->icon);
char* cmd;
FILE *cmdf;
if (button)
@@ -74,10 +72,8 @@ void getcmd(const Block *block, char *output)
}
if (!cmdf)
return;
- char c;
- int i = strlen(block->icon);
- fgets(output+i, CMDLENGTH-i, cmdf);
- i = strlen(output);
+ fgets(output, CMDLENGTH, cmdf);
+ int i = strlen(output);
if (delim != '\0' && i)
output[i++] = delim;
output[i++] = '\0';
Software created with 💖