diff options
Diffstat (limited to 'src/parse.c')
-rw-r--r-- | src/parse.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/parse.c b/src/parse.c index 88b0b08..c89da98 100644 --- a/src/parse.c +++ b/src/parse.c @@ -183,8 +183,8 @@ int ParseTwmrc (char *filename) if (home) { homelen = strlen (home); cp = tmpfilename; - (void) sprintf (tmpfilename, "%s/.twmrc.%d", - home, Scr->screen); + (void) snprintf (tmpfilename, sizeof(tmpfilename), + "%s/.twmrc.%d", home, Scr->screen); break; } } |