diff options
Diffstat (limited to 'src/strife/st_stuff.c')
-rw-r--r-- | src/strife/st_stuff.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/strife/st_stuff.c b/src/strife/st_stuff.c index 290edc5c..34682093 100644 --- a/src/strife/st_stuff.c +++ b/src/strife/st_stuff.c @@ -663,7 +663,8 @@ boolean ST_Responder(event_t* ev) { // [STRIFE] 'GPS' for player position static char buf[ST_MSGWIDTH]; - sprintf(buf, "ang=0x%x;x,y=(0x%x,0x%x)", + snprintf(buf, sizeof(buf), + "ang=0x%x;x,y=(0x%x,0x%x)", players[consoleplayer].mo->angle, players[consoleplayer].mo->x, players[consoleplayer].mo->y); |