diff options
author | mrwastl <mrwastl@users.sourceforge.net> | 2011-06-09 21:36:43 +0200 |
---|---|---|
committer | mrwastl <mrwastl@users.sourceforge.net> | 2011-06-09 21:36:43 +0200 |
commit | e1bb3e642f83b2c99bfcf5afa9818f5b120bc12b (patch) | |
tree | b46a074d438e4dc51dc5e54bfa7891c32efc65f5 /plugin.c | |
parent | 7298fd2401032cf601257900aa3d79255b30ef0d (diff) | |
download | vdr-plugin-graphlcd-e1bb3e642f83b2c99bfcf5afa9818f5b120bc12b.tar.gz vdr-plugin-graphlcd-e1bb3e642f83b2c99bfcf5afa9818f5b120bc12b.tar.bz2 |
beauty fix: use strtoul instead of strtol for uint32_t
Diffstat (limited to 'plugin.c')
-rw-r--r-- | plugin.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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"; } |