summaryrefslogtreecommitdiff
path: root/slstatus.c
AgeCommit message (Collapse)Author
2017-05-11added option to output only once and exit afterwardsAaron Marcher
2017-04-20simplified and improved vol_perc()Aaron Marcher
2017-04-20fix overflow in run_command()Aaron Marcher
2017-04-20username(): get rid of unneeded uid variableAaron Marcher
2017-04-04On success, fgets always terminates the result.Tobias Stoeckmann
If fgets succeeds, then the resulting char array is always terminated by a '\0'. No need to keep extra space, therefore sizeof(buf) is the correct argument. Signed-off-by: Tobias Stoeckmann <tobias@stoeckmann.org>
2017-04-02Fixed out of boundary write on long lines.Tobias Stoeckmann
The terminating nul character ('\0') could be written outside the boundary of the buffer which is used to read characters. If "sizeof(buffer)" characters are read, the resulting value must not be used as index, because that's an off by one. Read sizeof(buffer)-1 bytes instead. Signed-off-by: Tobias Stoeckmann <tobias@stoeckmann.org>
2017-03-30loading thresholds stateAaron Marcher
2017-01-23Fixed XCloseDisplay() which is not reached in keyboard_indicators()Aaron Marcher
2017-01-16Added keyboard_indicators (Fixes #31)Aaron Marcher
2017-01-09Makefile fix and vol_perc fix for muteAaron Marcher
2017-01-07removed ./extern/Aaron Marcher
2017-01-07removed strlcat dependency (was used only once)Aaron Marcher
2017-01-07got rid of concat.hAaron Marcher
2017-01-07happy new year!Aaron Marcher
2017-01-07run_command: strlen() will not function if string is not null terminatedAaron Marcher
2016-12-30consistent coding style: usage() declaration, eval is a constantAaron Marcher
2016-12-30Merge branch 'master' into masterparazyd
2016-12-30add vol_perc notes, add braces to singleline statementsparazyd
2016-12-29why releases for such a small project? useless and overhead!Aaron Marcher
2016-12-29#undef strlcpy not needed anymoreAaron Marcher
2016-12-29Merge branch 'master' into masterAaron Marcher
2016-12-29add braces to single statements so drkhsh doesn't be upsetraiz
2016-12-28kernel_release() coding style and position in code fixAaron Marcher
2016-12-28refactor vol_perc to not depend on alsa librariesparazyd
2016-12-27usage(): return success if -h is called && print more appropriate usage, ↵raiz
opts can't be all called at the same time, that's why a separator is required
2016-12-27whhops, my badraiz
2016-12-27wifi_essid: add boundary check && prevent the use of direct string literal ↵raiz
as a format string in snprintf()
2016-12-27don't allow the use of perc if uninitializedraiz
2016-12-27remove misleading commentraiz
2016-12-27get rid of set_status() since it's only used onceraiz
2016-12-27allow the use of %* symbols in UNKNOWN_STRraiz
2016-12-27add extra error tests to swap_*() && fix bytes_read bugraiz
2016-12-27swap_*(): add more error testsraiz
2016-12-27fix delay in a cleaner wayraiz
2016-12-27remove newlines from warn() in swap_*(), those functions already print a ↵raiz
newline after printing string stderr
2016-12-27inititalize run_command()'s buf to UNKNOWN_STR by defaultraiz
2016-12-27remove newline character from run_command() output accuratelyraiz
2016-12-27strtok() has no effect on buf && fgets() should have the full buffer lengthraiz
2016-12-18whhopsraiz
2016-12-18remove unused strlcpy() and reduce the size of output bufferraiz
2016-11-16Add "uname -r" functionalityMike Coddington
2016-10-15swap: Print UNKNOWN_STR if no swap is allocatedJody Leonard
2016-10-15Add functions for measuring swapJody Leonard
2016-10-13vol_perc: Return "mute" when mixer is mutedJody Leonard
This feature was originally removed as part of 52d19f9.
2016-10-10add setlocale() (mostly for datetime function)Aaron Marcher
2016-10-10check daemon() return valueAaron Marcher
2016-10-10fixed run_command()Aaron Marcher
2016-10-10fixed run_command()Aaron Marcher
2016-10-09removed unnecessary fp, shorter return 0 and fixed compiler warning in vol_percAaron Marcher
2016-10-08hostname: use POSIX routine to get hostname rather than reading from procfsAli H. Fardan