aboutsummaryrefslogtreecommitdiffstats
path: root/com32/elflink/ldlinux/readconfig.c
diff options
context:
space:
mode:
Diffstat (limited to 'com32/elflink/ldlinux/readconfig.c')
-rw-r--r--com32/elflink/ldlinux/readconfig.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/com32/elflink/ldlinux/readconfig.c b/com32/elflink/ldlinux/readconfig.c
index 24f1cc94..381b43ff 100644
--- a/com32/elflink/ldlinux/readconfig.c
+++ b/com32/elflink/ldlinux/readconfig.c
@@ -1311,7 +1311,7 @@ static void parse_config_file(FILE * f)
uint32_t baud;
p = skipspace(p + 6);
- port = atoi(p);
+ port = strtoul(p, &p, 0);
while (isalnum(*p))
p++;
@@ -1335,7 +1335,7 @@ static void parse_config_file(FILE * f)
flow = 0;
if (isalnum(*p)) {
/* flow control */
- flow = atoi(p);
+ flow = strtoul(p, NULL, 0);
ignore = ((flow & 0x0F00) >> 4);
}