summaryrefslogtreecommitdiff
path: root/src/Resources.cc
diff options
context:
space:
mode:
authormathias <mathias>2005-01-11 12:39:01 (GMT)
committermathias <mathias>2005-01-11 12:39:01 (GMT)
commit2a49732159683cd0981d49cce66f9945b83d405b (patch)
tree3f80f816e512a9069e522f11cd4bc5ffcc9bad58 /src/Resources.cc
parent5bbab52d6dee30554159f5b40b2715ff35d50609 (diff)
downloadfluxbox_lack-2a49732159683cd0981d49cce66f9945b83d405b.zip
fluxbox_lack-2a49732159683cd0981d49cce66f9945b83d405b.tar.bz2
fix for #1099278
Diffstat (limited to 'src/Resources.cc')
-rw-r--r--src/Resources.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Resources.cc b/src/Resources.cc
index 9fd1dd6..7c7713f 100644
--- a/src/Resources.cc
+++ b/src/Resources.cc
@@ -77,7 +77,7 @@ setFromString(const char *strval) {
77template<> 77template<>
78void FbTk::Resource<long long>:: 78void FbTk::Resource<long long>::
79setFromString(const char *strval) { 79setFromString(const char *strval) {
80 if (sscanf(strval, "%ul", &m_value) != 1) 80 if (sscanf(strval, "%llu", &m_value) != 1)
81 setDefaultValue(); 81 setDefaultValue();
82} 82}
83 83
@@ -159,7 +159,7 @@ template<>
159string FbTk::Resource<long long>:: 159string FbTk::Resource<long long>::
160getString() { 160getString() {
161 char tmpstr[128]; 161 char tmpstr[128];
162 sprintf(tmpstr, "%ul", m_value); 162 sprintf(tmpstr, "%llu", (unsigned long long) m_value);
163 return string(tmpstr); 163 return string(tmpstr);
164} 164}
165 165