[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: branches/digikam/0.8-experimental/digikam/utilities/cameragui
From: Renchi Raju <renchi () pooh ! tam ! uiuc ! edu>
Date: 2005-06-24 23:03:07
Message-ID: 1119654187.519845.1055.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 428698 by pahlibar:
remove any instance of %s from the templated name, before
it goes to sprintf. fixes crash if user enters for eg: %%s
M +3 -1 cameraiconview.cpp
--- branches/digikam/0.8-experimental/digikam/utilities/cameragui/cameraiconview.cpp #428697:428698
@@ -161,8 +161,10 @@
struct tm* time_tm = ::localtime(&itemInfo->mtime);
char s[100];
strftime(s, 100, QFile::encodeName(dname), time_tm);
+
dname = s;
-
+ dname.replace("%s", "");
+
dname.sprintf(QFile::encodeName(dname), position+1);
dname.replace("/","");
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic