aboutsummaryrefslogtreecommitdiff
path: root/libX11/src/GetDflt.c
diff options
context:
space:
mode:
Diffstat (limited to 'libX11/src/GetDflt.c')
-rw-r--r--libX11/src/GetDflt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libX11/src/GetDflt.c b/libX11/src/GetDflt.c
index dfda1c64d..6f62cd820 100644
--- a/libX11/src/GetDflt.c
+++ b/libX11/src/GetDflt.c
@@ -110,7 +110,7 @@ GetHomeDir(
len2 = strlen (ptr2);
}
if ((len1 + len2 + 1) < len)
- sprintf (dest, "%s%s", ptr1, (ptr2) ? ptr2 : "");
+ snprintf (dest, len, "%s%s", ptr1, (ptr2) ? ptr2 : "");
else
*dest = '\0';
#else