[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    KDE_2_2_BRANCH: kdenetwork/ksirc/puke
From:       Lubos Lunak <l.lunak () kde ! org>
Date:       2002-12-06 16:17:15
[Download RAW message or body]

CVS commit by lunakl: 

Max size limit for scanf().


  M +1 -1      controller.cpp   1.46.2.1


--- kdenetwork/ksirc/puke/controller.cpp:1.46	Wed Mar 14 02:13:19 2001
@@ -567,7 +567,7 @@
   int iParent=-1, iType=-1;
 
   char rand[50],name[50];
-  int found = sscanf(pm->cArg, "%d\t%d\t%s\t%s", &iParent, &iType, rand, name);
+  int found = sscanf(pm->cArg, "%d\t%d\t%49s\t%49s", &iParent, &iType, rand, name);
   if(found != 4){
       throw(errorCommandFailed(PUKE_INVALID,6));
   }

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic