From e1bb3e642f83b2c99bfcf5afa9818f5b120bc12b Mon Sep 17 00:00:00 2001 From: mrwastl Date: Thu, 9 Jun 2011 21:36:43 +0200 Subject: beauty fix: use strtoul instead of strtol for uint32_t --- plugin.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugin.c') diff --git a/plugin.c b/plugin.c index a07c4e7..9418ca0 100644 --- a/plugin.c +++ b/plugin.c @@ -308,7 +308,7 @@ cString cPluginGraphLCD::SVDRPCommand(const char *Command, const char *Option, i std::string key = option.substr(firstpos+1, secondpos-firstpos-1); std::string value = option.substr(secondpos+1); if ( isalpha(key[0]) && isdigit(option[0]) ) { - uint32_t expsec = (uint32_t)strtol( option.substr(0, firstpos).c_str(), NULL, 10); + uint32_t expsec = (uint32_t)strtoul( option.substr(0, firstpos).c_str(), NULL, 10); mDisplay->GetExtData()->Set( key, value, expsec ); return "SETEXP ok"; } -- cgit v1.2.3