summaryrefslogtreecommitdiff
path: root/libtk/scale.c
diff options
context:
space:
mode:
authorforsyth <forsyth@vitanuova.com>2011-03-30 09:26:38 +0100
committerforsyth <forsyth@vitanuova.com>2011-03-30 09:26:38 +0100
commit48c2bcd8842a77d6fca4a18505e622e9a9d3d38b (patch)
treed5df8515ef73a5f8c0733982de96307760640b4c /libtk/scale.c
parentd850935a944d6b7390dc1e3350c70dd438f6777a (diff)
20110330-0926
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)