mirror of
https://github.com/MariaDB/server.git
synced 2026-01-06 05:22:24 +03:00
getvar.c atoll() -> strtoll() (portability fix)
mysys/getvar.c: atoll() -> strtoll() (portability fix)
This commit is contained in:
@@ -87,7 +87,7 @@ my_bool set_changeable_var(my_string str,CHANGEABLE_VAR *vars)
|
||||
DBUG_RETURN(1);
|
||||
}
|
||||
|
||||
num=atoll(end); endchar=strend(end)[-1];
|
||||
num=strtoll(end, (char **)NULL, 10); endchar=strend(end)[-1];
|
||||
if (endchar == 'k' || endchar == 'K')
|
||||
num*=1024;
|
||||
else if (endchar == 'm' || endchar == 'M')
|
||||
|
||||
Reference in New Issue
Block a user