all repos — fluxbox @ f8c61a1ba2cc5fc08690b89440cb2f0380f068df

custom fork of the fluxbox windowmanager

compile fix: use the correct format string to parse the number
Mathias Gumz akira at fluxbox dot org
commit

f8c61a1ba2cc5fc08690b89440cb2f0380f068df

parent

e8c2690bfc92274b96d1620829977bf4c1db908b

2 files changed, 2 insertions(+), 2 deletions(-)

jump to
M src/FbTk/ThemeItems.ccsrc/FbTk/ThemeItems.cc

@@ -120,7 +120,7 @@ }

template <> void ThemeItem<unsigned int>::setFromString(const char *str) { - sscanf(str, "%d", &m_value); + sscanf(str, "%u", &m_value); } template <>
M src/Resources.ccsrc/Resources.cc

@@ -113,7 +113,7 @@

template<> void FbTk::Resource<long long>:: setFromString(const char *strval) { - if (sscanf(strval, "%llu", &m_value) != 1) + if (sscanf(strval, "%lld", &m_value) != 1) setDefaultValue(); }