diff options
author | David Gwynne <dlg@cvs.openbsd.org> | 2013-03-15 12:52:04 +0000 |
---|---|---|
committer | David Gwynne <dlg@cvs.openbsd.org> | 2013-03-15 12:52:04 +0000 |
commit | b8f84e76184dcbe5dfdf308c1d21569bcef0162c (patch) | |
tree | cf50f145d5b9c3ae7febf08c15f1194736642f49 /usr.sbin | |
parent | 93b75e61ef6de8e2b28a8ae83aaf5525a9a66682 (diff) |
"correct" the order of calloc arguments.
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/tftpd/tftpd.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/tftpd/tftpd.c b/usr.sbin/tftpd/tftpd.c index 93e01e2e771..24dbab7bab8 100644 --- a/usr.sbin/tftpd/tftpd.c +++ b/usr.sbin/tftpd/tftpd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tftpd.c,v 1.10 2013/03/15 12:36:11 dlg Exp $ */ +/* $OpenBSD: tftpd.c,v 1.11 2013/03/15 12:52:03 dlg Exp $ */ /* * Copyright (c) 2012 David Gwynne <dlg@uq.edu.au> @@ -565,7 +565,7 @@ client_alloc() { struct tftp_client *client; - client = calloc(sizeof(*client), 1); + client = calloc(1, sizeof(*client)); if (client == NULL) return (NULL); @@ -812,7 +812,7 @@ again: client->fgetc = pf->f_getc; client->fputc = pf->f_putc; - client->options = options = calloc(sizeof(*client->options), NOPT); + client->options = options = calloc(NOPT, sizeof(*client->options)); if (options == NULL) { ecode = 100 + ENOMEM; goto error; |