Skip to content

Commit

Permalink
🛠️ Make time format uses %ls instead of %s in line 424 & 428 (#67)
Browse files Browse the repository at this point in the history
  • Loading branch information
UnknownRori committed Jun 13, 2023
1 parent 50f1c36 commit 168234a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/dwm-win32.c
Original file line number Diff line number Diff line change
Expand Up @@ -424,9 +424,9 @@ drawbar(void) {
gmtime_s(&date, &timer);
wcsftime(utctimestr, 255, clockfmt, &date);

swprintf(timestr, sizeof(timestr), L"%s | UTC: %s", localtimestr, utctimestr);
swprintf(timestr, sizeof(timestr), L"%ls | UTC: %ls", localtimestr, utctimestr);
} else {
swprintf(timestr, sizeof(localtimestr), L"%s", localtimestr);
swprintf(timestr, sizeof(localtimestr), L"%ls", localtimestr);
}

dc.w = TEXTW(timestr);
Expand Down

0 comments on commit 168234a

Please sign in to comment.