diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2013-07-20 14:48:33 -0700 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2013-07-20 14:48:33 -0700 |
commit | 10c30ae6a7df1a7c352a1d611a313dffcaa42082 (patch) | |
tree | 026f104da4a086619efb1a88dbf20a022282b8f6 /src/authutil.c | |
parent | 0a94633e3d805ca477fba6b7acb673d055a3f43d (diff) |
Convert remaining sprintf() call to snprintf()
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Diffstat (limited to 'src/authutil.c')
-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) |