summaryrefslogtreecommitdiff
path: root/src/parse.c
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2011-07-12 22:30:41 -0700
committerAlan Coopersmith <alan.coopersmith@oracle.com>2011-07-12 22:30:41 -0700
commitc6ade914363426facb01a954650b804657114012 (patch)
treecd06caef24ef2bb064997df6b3dae6bdede71b64 /src/parse.c
parentab689e1a711bbbdfcd6d3a8d2edebbc378ebccb7 (diff)
Replace most sprintf calls with snprintf
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Diffstat (limited to 'src/parse.c')
-rw-r--r--src/parse.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/parse.c b/src/parse.c
index 1831d39..dd79092 100644
--- a/src/parse.c
+++ b/src/parse.c
@@ -179,8 +179,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;
}
}