diff options
| author | Aidan <torrinfail@gmail.com> | 2019-11-30 02:05:10 -0700 | 
|---|---|---|
| committer | Aidan <torrinfail@gmail.com> | 2019-11-30 02:05:10 -0700 | 
| commit | 09a00ab345f1c1c4bce5496f7c7d054476e35392 (patch) | |
| tree | 3ecb2873ad2f2cae902e4a3263f867cd8d912570 | |
| parent | Fixed garbled last commit (diff) | |
| download | dwmblocks-09a00ab345f1c1c4bce5496f7c7d054476e35392.tar.gz dwmblocks-09a00ab345f1c1c4bce5496f7c7d054476e35392.tar.bz2 dwmblocks-09a00ab345f1c1c4bce5496f7c7d054476e35392.tar.xz dwmblocks-09a00ab345f1c1c4bce5496f7c7d054476e35392.tar.zst dwmblocks-09a00ab345f1c1c4bce5496f7c7d054476e35392.zip | |
fixed issue causing segfault on ARM systems
Diffstat (limited to '')
| -rw-r--r-- | dwmblocks.c | 4 | 
1 files changed, 4 insertions, 0 deletions
| diff --git a/dwmblocks.c b/dwmblocks.c index 395b565..f7f23cc 100644 --- a/dwmblocks.c +++ b/dwmblocks.c @@ -54,7 +54,11 @@ void getcmd(const Block *block, char *output)  	char c;  	int i = strlen(block->icon);  	while((c = fgetc(cmdf)) != EOF) +	{  		output[i++] = c; +		if(c == '\n') +			break; +	}  	if (delim != '\0' && --i)  		output[i++] = delim;  	output[i++] = '\0'; | 
