From 18b2f4f34fb0ec97a77b1a5f5250e4b3e9b74959 Mon Sep 17 00:00:00 2001 From: "Anselm R. Garbe" Date: Sat, 24 Nov 2007 21:27:44 +0100 Subject: next version will be 0.8 --- slock.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'slock.c') diff --git a/slock.c b/slock.c index a7f79d9..af5d206 100644 --- a/slock.c +++ b/slock.c @@ -69,8 +69,10 @@ main(int argc, char **argv) { XEvent ev; XSetWindowAttributes wa; - if((argc > 1) && !strncmp(argv[1], "-v", 3)) + if((argc == 2) && !strcmp("-v", argv[1])) eprint("slock-"VERSION", © 2006-2007 Anselm R. Garbe, Sander van Dijk\n"); + else if(argc != 1) + eprint("usage: slock [-v]\n"); pws = get_password(); if(!(dpy = XOpenDisplay(0))) eprint("slock: cannot open display\n"); -- cgit v1.2.3-70-g09d2