aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKris Maglione <jg@suckless.org>2007-05-23 16:44:15 -0400
committerKris Maglione <jg@suckless.org>2007-05-23 16:44:15 -0400
commit8369e1736b4778e766f55d5476bbbd38a8b46331 (patch)
treef051269edffeccf4ed843b3649e29f7b647efac3
parentc04b688cc0fdfdf28eec8ca0133b7a89065ce499 (diff)
parent4ebd7c4a219bae1a0d38a7c85e5299d0cef81c95 (diff)
downloaddmenu-8369e1736b4778e766f55d5476bbbd38a8b46331.tar.gz
dmenu-8369e1736b4778e766f55d5476bbbd38a8b46331.tar.bz2
dmenu-8369e1736b4778e766f55d5476bbbd38a8b46331.zip
Merge.
-rw-r--r--main.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/main.c b/main.c
index e4c4903..22ef71b 100644
--- a/main.c
+++ b/main.c
@@ -437,28 +437,28 @@ main(int argc, char *argv[]) {
/* command line args */
for(i = 1; i < argc; i++)
- if(!strncmp(argv[i], "-b", 3)) {
+ if(!strcmp(argv[i], "-b")) {
bottom = True;
}
- else if(!strncmp(argv[i], "-fn", 4)) {
+ else if(!strcmp(argv[i], "-fn")) {
if(++i < argc) font = argv[i];
}
- else if(!strncmp(argv[i], "-nb", 4)) {
+ else if(!strcmp(argv[i], "-nb")) {
if(++i < argc) normbg = argv[i];
}
- else if(!strncmp(argv[i], "-nf", 4)) {
+ else if(!strcmp(argv[i], "-nf")) {
if(++i < argc) normfg = argv[i];
}
- else if(!strncmp(argv[i], "-p", 3)) {
+ else if(!strcmp(argv[i], "-p")) {
if(++i < argc) prompt = argv[i];
}
- else if(!strncmp(argv[i], "-sb", 4)) {
+ else if(!strcmp(argv[i], "-sb")) {
if(++i < argc) selbg = argv[i];
}
- else if(!strncmp(argv[i], "-sf", 4)) {
+ else if(!strcmp(argv[i], "-sf")) {
if(++i < argc) selfg = argv[i];
}
- else if(!strncmp(argv[i], "-v", 3))
+ else if(!strcmp(argv[i], "-v"))
eprint("dmenu-"VERSION", © 2006-2007 Anselm R. Garbe, Sander van Dijk\n");
else
usage();