]> Dogcows Code - chaz/openbox/commitdiff
possible buffer overflow?
authorDana Jansens <danakj@orodu.net>
Wed, 9 May 2007 20:27:19 +0000 (20:27 +0000)
committerDana Jansens <danakj@orodu.net>
Wed, 9 May 2007 20:27:19 +0000 (20:27 +0000)
openbox/session.c

index bcf80ad0e8f72c7a60bd04ce30897f3468fa0d8f..463e98933610301a7d949702cf0a08a6f29babc2 100644 (file)
@@ -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);
This page took 0.026491 seconds and 4 git commands to generate.