openbsd-ports/games/micropolis/patches/patch-src_tk_tkcursor_c
2017-05-09 13:01:42 +00:00

14 lines
411 B
Plaintext

$OpenBSD: patch-src_tk_tkcursor_c,v 1.2 2017/05/09 13:01:42 espie Exp $
Index: src/tk/tkcursor.c
--- src/tk/tkcursor.c.orig
+++ src/tk/tkcursor.c
@@ -560,7 +560,7 @@ Tk_NameOfCursor(cursor)
if (!initialized) {
printid:
- sprintf(string, "cursor id 0x%x", cursor);
+ snprintf(string, 20, "cursor id 0x%lx", cursor);
return string;
}
idHashPtr = Tcl_FindHashEntry(&idTable, (char *) cursor);