Browse Source

fix: atol instead of atoi for long var

master
n0m1s 6 years ago
parent
commit
5fc2b1fe8f
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      clock_settings.cpp

+ 1
- 1
clock_settings.cpp View File

@ -29,7 +29,7 @@ void ClockSettings::add_info(char const* key, char const* val)
} }
else if(string_equals(key, "val")) else if(string_equals(key, "val"))
{ {
long const v = atoi(val);
long const v = atol(val);
delete[] val; delete[] val;
if(v > UINT_MAX) if(v > UINT_MAX)


Loading…
Cancel
Save