summaryrefslogtreecommitdiffstats
path: root/sesman/session.c
diff options
context:
space:
mode:
authorBLINDAUER Emmanuel <e.blindauer@gmail.com>2016-12-14 07:16:06 +0100
committerBLINDAUER Emmanuel <e.blindauer@gmail.com>2016-12-14 07:16:06 +0100
commit16b6471d880df9185a87bac983685ff8fd1c959f (patch)
treeca6443fc48ccbdf371596deebb2b3fa55627ce8a /sesman/session.c
parent0aa4b85f817ac97ab8916c6aaae3066149902ba6 (diff)
downloadxrdp-proprietary-16b6471d880df9185a87bac983685ff8fd1c959f.tar.gz
xrdp-proprietary-16b6471d880df9185a87bac983685ff8fd1c959f.zip
use the correct size for snprintf
Diffstat (limited to 'sesman/session.c')
-rw-r--r--sesman/session.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sesman/session.c b/sesman/session.c
index f057c93d..81276a91 100644
--- a/sesman/session.c
+++ b/sesman/session.c
@@ -443,7 +443,7 @@ session_start_fork(tbus data, tui8 type, struct SCP_SESSION *s)
time_t ltime;
char cookie[33]; /* the cookie which will be used for xauth */
char cookie_tmpval; /* Used to fill the cookie with random values */
- char authfile[255]; /* The filename for storing xauth informations */
+ char authfile[256]; /* The filename for storing xauth informations */
/* initialize (zero out) local variables: */
g_memset(&ltime, 0, sizeof(time_t));
@@ -686,7 +686,7 @@ session_start_fork(tbus data, tui8 type, struct SCP_SESSION *s)
}
else
{
- g_snprintf(authfile, 11, "%s", ".Xauthority");
+ g_snprintf(authfile, 12, "%s", ".Xauthority");
}
/* Create the cookie */