summaryrefslogtreecommitdiff
path: root/usr.bin/window
diff options
context:
space:
mode:
authorAaron Campbell <aaron@cvs.openbsd.org>2002-08-12 00:42:57 +0000
committerAaron Campbell <aaron@cvs.openbsd.org>2002-08-12 00:42:57 +0000
commit87ffdf06b6ecc46b38ca953419304b64e37c7c95 (patch)
tree9e44c0b5a073ee17b9d7d3da181c696f012c6248 /usr.bin/window
parent941ec3d1051d178a11f6baa72a3d520413033f2e (diff)
Swap args to calloc(3) so they are in the correct order; art@ ok.
Diffstat (limited to 'usr.bin/window')
-rw-r--r--usr.bin/window/wwopen.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/window/wwopen.c b/usr.bin/window/wwopen.c
index 650274cdaeb..aece7a0f859 100644
--- a/usr.bin/window/wwopen.c
+++ b/usr.bin/window/wwopen.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: wwopen.c,v 1.7 2001/11/19 19:02:18 mpech Exp $ */
+/* $OpenBSD: wwopen.c,v 1.8 2002/08/12 00:42:56 aaron Exp $ */
/* $NetBSD: wwopen.c,v 1.6 1996/02/08 21:08:04 mycroft Exp $ */
/*
@@ -41,7 +41,7 @@
#if 0
static char sccsid[] = "@(#)wwopen.c 8.2 (Berkeley) 4/28/95";
#else
-static char rcsid[] = "$OpenBSD: wwopen.c,v 1.7 2001/11/19 19:02:18 mpech Exp $";
+static char rcsid[] = "$OpenBSD: wwopen.c,v 1.8 2002/08/12 00:42:56 aaron Exp $";
#endif
#endif /* not lint */
@@ -59,7 +59,7 @@ wwopen(type, oflags, nrow, ncol, row, col, nline)
char m;
short nvis;
- w = (struct ww *)calloc(sizeof (struct ww), 1);
+ w = (struct ww *)calloc(1, sizeof (struct ww));
if (w == 0) {
wwerrno = WWE_NOMEM;
goto bad;