diff options
-rw-r--r-- | src/authutil.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/authutil.c b/src/authutil.c index 05d23a1..908d4b1 100644 --- a/src/authutil.c +++ b/src/authutil.c @@ -99,7 +99,7 @@ IceAuthFileName (void) len2 = strlen (ptr2); } if ((len1 + len2 + 1) < PATH_MAX) { - sprintf (dir, "%s%s", ptr1, (ptr2) ? ptr2 : ""); + snprintf (dir, sizeof(dir), "%s%s", ptr1, (ptr2) ? ptr2 : ""); name = dir; } if (!name) |