summaryrefslogtreecommitdiff
path: root/xkbpath.c
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@sun.com>2008-09-05 15:07:13 -0700
committerAlan Coopersmith <alan.coopersmith@sun.com>2008-09-05 15:07:13 -0700
commita82e1dcc8ad095581402d05e5d1ae1bbf3646954 (patch)
tree8a0f0422af98d40d9dfa66c044a3566cbdf95b30 /xkbpath.c
parentd2d06305e1834548edd8a647564efa222a511b53 (diff)
downloadxorg-app-xkbcomp-a82e1dcc8ad095581402d05e5d1ae1bbf3646954.tar.gz
sprintf -> snprintf conversions
Diffstat (limited to 'xkbpath.c')
-rw-r--r--xkbpath.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/xkbpath.c b/xkbpath.c
index dcab317..10a6136 100644
--- a/xkbpath.c
+++ b/xkbpath.c
@@ -405,7 +405,7 @@ XkbFindFileInPath(char *name, unsigned type, char **pathRtrn)
ACTION("Ignored\n");
continue;
}
- sprintf(buf, "%s/%s/%s", includePath[i], typeDir, name);
+ snprintf(buf, sizeof(buf), "%s/%s/%s", includePath[i], typeDir, name);
file = fopen(buf, "r");
if (file != NULL)
break;