diff options
author | Matthieu Herrb <matthieu@cvs.openbsd.org> | 2012-03-06 23:23:45 +0000 |
---|---|---|
committer | Matthieu Herrb <matthieu@cvs.openbsd.org> | 2012-03-06 23:23:45 +0000 |
commit | 78ec8f49cbd472b8728938960289b9835eb4d998 (patch) | |
tree | 6c55fb19acf6224b86951c637bd2e584c1063930 /app | |
parent | 3c345df2f16c4252193195846bad0130ce8d1607 (diff) |
Fix 2 NULL pointer dereferences.
Diffstat (limited to 'app')
-rw-r--r-- | app/xtsscale/xtsscale.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/app/xtsscale/xtsscale.c b/app/xtsscale/xtsscale.c index 42963b1e6..9a30bced3 100644 --- a/app/xtsscale/xtsscale.c +++ b/app/xtsscale/xtsscale.c @@ -1,4 +1,4 @@ -/* $OpenBSD: xtsscale.c,v 1.21 2011/07/16 17:54:07 matthieu Exp $ */ +/* $OpenBSD: xtsscale.c,v 1.22 2012/03/06 23:23:44 matthieu Exp $ */ /* * Copyright (c) 2007 Robert Nagy <robert@openbsd.org> * Copyright (c) 2009,2011 Matthieu Herrb <matthieu@herrb.eu> @@ -612,7 +612,7 @@ main(int argc, char *argv[], char *env[]) /* connect to X server */ if ((display = XOpenDisplay(display_name)) == NULL) { fprintf(stderr, "%s: cannot connect to X server %s\n", - argv[0], XDisplayName(display_name)); + __progname, XDisplayName(display_name)); exit(1); } screen = DefaultScreen(display); @@ -653,7 +653,7 @@ main(int argc, char *argv[], char *env[]) if (!XQueryExtension(display, INAME, &xi_opcode, &event, &error)) { fprintf(stderr, "%s: X Input extension not available.\n", - argv[0]); + __progname); exit(1); } |