* dwmstatus for OpenBSD
       
   URI git clone git://git.codevoid.de/dwmstatus-sdk
   DIR Log
   DIR Files
   DIR Refs
   DIR LICENSE
       ---
   DIR commit e54e43d8764269eba76639b2317000e7a51b3357
   DIR parent 274e13d1e41a315d87fe90ec01ce0cef42608d13
   URI Author: Stefan Hagen <sh+git[at]codevoid[dot]de>
       Date:   Tue, 13 Nov 2018 17:01:46 +0100
       
       Fix warning text assignment
       
       Diffstat:
         M dwmstatus.c                         |      11 ++++++-----
       
       1 file changed, 6 insertions(+), 5 deletions(-)
       ---
   DIR diff --git a/dwmstatus.c b/dwmstatus.c
       @@ -79,7 +79,7 @@ getsysctl(char *input_str) {
        
        char *
        getvolume(char *mixerpath) {
       -    return smprintf("not implemented");
       +    return smprintf("N/A");
        } 
        
        void
       @@ -241,13 +241,14 @@ void update() {
            freespace = getfreespace("/home");
        
            // low disk space warning
       -    char warning[32];
       -    if(atoi(freespace) < LOW_DISKSPACE)
       -        strncpy(warning, "!!! LOW DISK SPACE WARNING !!! \0", sizeof(warning));
       -    status   = smprintf("%s%sMB | LOAD:%s | %sCET @ %sUTC", warning, freespace, loadavg(), datetime, datetime_utc);
       +    char *warning = "!!! LOW DISK SPACE WARNING !!! ";
       +    if(atoi(freespace) > LOW_DISKSPACE)
       +        warning = "\0";
       +    status   = smprintf("%s%sMB | %s | LOAD:%s | %sCET @ %sUTC", warning, freespace, volume, loadavg(), datetime, datetime_utc);
        
            free(datetime);
            free(datetime_utc);
       +
            free(volume);
            free(freespace);
            setstatus(status);