From 4b912ed24d6bcc62371dc49b4aef811dc61497f2 Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Wed, 9 May 2007 20:27:19 +0000 Subject: [PATCH] possible buffer overflow? --- openbox/session.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openbox/session.c b/openbox/session.c index bcf80ad0..463e9893 100644 --- a/openbox/session.c +++ b/openbox/session.c @@ -175,7 +175,7 @@ static gboolean session_connect() SmcSaveCompleteProcMask | SmcShutdownCancelledProcMask, &cb, oldid, &ob_sm_id, - SM_ERR_LEN, sm_err); + SM_ERR_LEN-1, sm_err); g_free(oldid); if (sm_conn == NULL) ob_debug("Failed to connect to session manager: %s\n", sm_err); -- 2.45.2