diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/gsm_utils.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gsm_utils.c b/src/gsm_utils.c index 4ee137c3..97497c8e 100644 --- a/src/gsm_utils.c +++ b/src/gsm_utils.c @@ -224,7 +224,7 @@ enum gsm_band gsm_band_parse(const char* mhz) if (*mhz == '\0') return -EINVAL; - switch (atoi(mhz)) { + switch (strtol(mhz, NULL, 10)) { case 450: return GSM_BAND_450; case 480: |