wmii

git clone git://oldgit.suckless.org/wmii/
Log | Files | Refs | README | LICENSE

commit d2aba5b621624f92e5fb775645974f5bd55cb7df
parent 5662a1b15c55102e4d6107ef35ea39cfe37bc6d7
Author: Anselm R. Garbe <garbeam@wmii.de>
Date:   Wed, 12 Apr 2006 11:29:05 +0200

fixed bug reported by Konstantin Klett via mail


Diffstat:
cmd/wmiir.c | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/cmd/wmiir.c b/cmd/wmiir.c @@ -124,7 +124,8 @@ static char * time2str(unsigned int t) { static char buf[32]; - cext_strlcpy(buf, ctime((time_t *)&t), sizeof(buf)); + char *tstr = ctime((time_t *)&t); + cext_strlcpy(buf, tstr ? tstr : "invalid", sizeof(buf)); buf[strlen(buf) - 1] = 0; return buf; }