From kde-commits Sat Dec 07 16:53:08 2002 From: Waldo Bastian Date: Sat, 07 Dec 2002 16:53:08 +0000 To: kde-commits Subject: KDE_3_1_BRANCH: kdelibs/dcop/KDE-ICE [POSSIBLY UNSAFE] X-MARC-Message: https://marc.info/?l=kde-commits&m=103928021714074 CVS commit by waba: Proper string handling. Patch by Peter Hawkins 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);