aboutsummaryrefslogtreecommitdiffstats
path: root/main.c
diff options
context:
space:
mode:
authorgotmor <gotmor@f2baff5b-bf2c-0410-a398-912abdc3d8b2>2007-06-04 17:31:51 +0000
committergotmor <gotmor@f2baff5b-bf2c-0410-a398-912abdc3d8b2>2007-06-04 17:31:51 +0000
commit37c05b6b286296c9985a360093b42f3532832c59 (patch)
tree778e5be3f0d8ad14b66469e4d2d034c7af26f907 /main.c
parent00e51dd4415467fc2b74006f94b40cbb798d99f5 (diff)
downloaddzen-37c05b6b286296c9985a360093b42f3532832c59.tar.gz
dzen-37c05b6b286296c9985a360093b42f3532832c59.zip
changed option handling for -p to strtoul
fixed off by one in scroll git-svn-id: http://dzen.googlecode.com/svn/trunk@65 f2baff5b-bf2c-0410-a398-912abdc3d8b2
Diffstat (limited to 'main.c')
-rw-r--r--main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/main.c b/main.c
index 191a2e2..b5f7dc4 100644
--- a/main.c
+++ b/main.c
@@ -536,7 +536,7 @@ main(int argc, char *argv[]) {
else if(!strncmp(argv[i], "-p", 3)) {
dzen.ispersistent = True;
if (i + 1 < argc) {
- dzen.timeout = strtol(argv[i + 1], &endptr, 10);
+ dzen.timeout = strtoul(argv[i + 1], &endptr, 10);
*endptr ? dzen.timeout = 0 : i++;
}
}