From: alx Date: Thu, 2 Jul 2015 20:35:33 +0000 (+0200) Subject: dtsession: fixed errorlog rotation X-Git-Tag: 2.2.4~30 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=cbd5abb33a2cfac9a57891072b2d64549390e1a7;p=oweals%2Fcde.git dtsession: fixed errorlog rotation --- diff --git a/cde/programs/dtsession/SmGlobals.c b/cde/programs/dtsession/SmGlobals.c index 51eeeef9..c98e2369 100644 --- a/cde/programs/dtsession/SmGlobals.c +++ b/cde/programs/dtsession/SmGlobals.c @@ -1665,7 +1665,7 @@ TrimErrorlog( void ) len = strlen(home) + strlen(DtPERSONAL_CONFIG_DIRECTORY) + 2; if (len > MAXPATHLEN) savePath = SM_REALLOC(savePath, len); - snprintf(savePath, len - 1, "%s/%s", home, DtPERSONAL_CONFIG_DIRECTORY); + snprintf(savePath, len, "%s/%s", home, DtPERSONAL_CONFIG_DIRECTORY); /* * If errorlog.old exists and it is not empty, delete