[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: kdebase/kpager [POSSIBLY UNSAFE]
From: Luboš Luňák <l.lunak () kde ! org>
Date: 2002-12-31 18:53:37
[Download RAW message or body]
CVS commit by lunakl:
Fix the warning without breaking things (I hope).
M +2 -3 windowdrag.cpp 1.6 [POSSIBLY UNSAFE: scanf]
--- kdebase/kpager/windowdrag.cpp #1.5:1.6
@@ -62,6 +62,5 @@ bool PagerWindowDrag::decode( QDropEvent
{
char *tmp=data.data();
- int wid = static_cast<int>(w);
- sscanf(tmp,"%d %d %d %d", &wid, &deltax, &deltay, &origdesk);
+ sscanf(tmp,"%lu %d %d %d", &w, &deltax, &deltay, &origdesk);
e->accept();
return TRUE;
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic