summaryrefslogtreecommitdiff
path: root/src/encparse.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/encparse.c')
-rw-r--r--src/encparse.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/encparse.c b/src/encparse.c
index d10634d..ca4fc0f 100644
--- a/src/encparse.c
+++ b/src/encparse.c
@@ -833,8 +833,8 @@ FontEncReallyReallyLoad(const char *charset,
encoding = NULL;
if (!format[0]) {
- sprintf(format, "%%%ds %%%d[^\n]\n", (int)sizeof(encoding_name) - 1,
- (int)sizeof(file_name) - 1);
+ snprintf(format, sizeof(format), "%%%ds %%%d[^\n]\n",
+ (int)sizeof(encoding_name) - 1, (int)sizeof(file_name) - 1);
}
for(;;) {
count = fscanf(file, format, encoding_name, file_name);