summaryrefslogtreecommitdiff
path: root/plugin.c
diff options
context:
space:
mode:
authormrwastl <mrwastl@users.sourceforge.net>2011-06-09 21:36:43 +0200
committermrwastl <mrwastl@users.sourceforge.net>2011-06-09 21:36:43 +0200
commite1bb3e642f83b2c99bfcf5afa9818f5b120bc12b (patch)
treeb46a074d438e4dc51dc5e54bfa7891c32efc65f5 /plugin.c
parent7298fd2401032cf601257900aa3d79255b30ef0d (diff)
downloadvdr-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.c2
1 files changed, 1 insertions, 1 deletions
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";
}