[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: kdebase/kcontrol/usbview
From: Lubos Lunak <l.lunak () kde ! org>
Date: 2002-12-06 11:28:54
[Download RAW message or body]
CVS commit by lunakl:
Max size for sscanf().
M +2 -2 usbdevices.cpp 1.6
--- kdebase/kcontrol/usbview/usbdevices.cpp:1.5 Tue Aug 20 21:08:08 2002
@@ -72,9 +72,9 @@
}
else if (line.left(2) == "D:")
{
- char buffer[10];
+ char buffer[11];
sscanf(line.local8Bit().data(),
- "D: Ver=%x.%x Cls=%x(%s) Sub=%x Prot=%x MxPS=%d #Cfgs=%d",
+ "D: Ver=%x.%x Cls=%x(%10s) Sub=%x Prot=%x MxPS=%d #Cfgs=%d",
&_verMajor, &_verMinor, &_class, buffer, &_sub, &_prot, &_maxPacketSize, &_configs);
_className = buffer;
}
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic