summaryrefslogtreecommitdiff
path: root/libtk/scale.c
diff options
context:
space:
mode:
Diffstat (limited to 'libtk/scale.c')
-rw-r--r--libtk/scale.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libtk/scale.c b/libtk/scale.c
index ca42a106..d2ce8a33 100644
--- a/libtk/scale.c
+++ b/libtk/scale.c
@@ -926,7 +926,7 @@ tkscalekey(Tk *tk, char *arg, char **val)
if(tk->flag & Tkdisabled)
return nil;
- key = atoi(arg);
+ key = strtol(arg, nil, 0);
if (key == Up || key == Left)
pos = trough1;
else if (key == Down || key == Right)