[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE_3_1_BRANCH: kdelibs/dcop/KDE-ICE [POSSIBLY UNSAFE]
From: Waldo Bastian <bastian () kde ! org>
Date: 2002-12-07 16:53:08
[Download RAW message or body]
CVS commit by waba:
Proper string handling. Patch by Peter Hawkins <peter@hawkins.emu.id.au>
M +2 -2 Xtrans.c 1.3.4.1 [POSSIBLY UNSAFE]
--- kdelibs/dcop/KDE-ICE/Xtrans.c:1.3 Fri Jan 25 18:12:07 2002
@@ -1025,7 +1025,7 @@
if (trans->flags&TRANS_ALIAS || trans->flags&TRANS_NOLISTEN)
continue;
- sprintf(buffer,"%s/:%s", trans->TransName, port ? port : "");
+ snprintf(buffer, 256, "%s/:%s", trans->TransName, port ? port : "");
PRMSG (5,"MakeAllCOTSServerListeners: opening %s\n",
buffer, 0, 0);
@@ -1127,7 +1127,7 @@
if (trans->flags&TRANS_ALIAS || trans->flags&TRANS_NOLISTEN)
continue;
- sprintf(buffer,"%s/:%s", trans->TransName, port ? port : "");
+ snprintf(buffer, 256, "%s/:%s", trans->TransName, port ? port : "");
PRMSG (5,"MakeAllCLTSServerListeners: opening %s\n",
buffer, 0, 0);
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic