From d804aeeee2c9d5ca59895bfe4bdf89f34c0b0ed4 Mon Sep 17 00:00:00 2001 From: Artsiom Koltun Date: Wed, 7 Mar 2018 09:29:32 +0300 Subject: [PATCH] Change arguments order in calloc (tox.c) --- toxcore/tox.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/toxcore/tox.c b/toxcore/tox.c index 23d0d3e40e..71403a9c47 100644 --- a/toxcore/tox.c +++ b/toxcore/tox.c @@ -107,7 +107,7 @@ void tox_options_default(struct Tox_Options *options) struct Tox_Options *tox_options_new(TOX_ERR_OPTIONS_NEW *error) { - struct Tox_Options *options = calloc(sizeof(struct Tox_Options), 1); + struct Tox_Options *options = calloc(1, sizeof(struct Tox_Options)); if (options) { tox_options_default(options);