diff options
| author | 2011-07-09 01:36:42 +0000 | |
|---|---|---|
| committer | 2011-07-09 01:36:42 +0000 | |
| commit | 79884581cf4188653b58abd4fd2b27ef654938b9 (patch) | |
| tree | 3a13c861750eaff04bda09eb1e4a6cdb3767f572 /usr.bin/tmux/arguments.c | |
| parent | Extract hibernate_write_signature and hibernate_clear_signature to the MI (diff) | |
| download | wireguard-openbsd-79884581cf4188653b58abd4fd2b27ef654938b9.tar.xz wireguard-openbsd-79884581cf4188653b58abd4fd2b27ef654938b9.zip | |
Pass the right size to calloc (* not **).
Diffstat (limited to 'usr.bin/tmux/arguments.c')
| -rw-r--r-- | usr.bin/tmux/arguments.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/tmux/arguments.c b/usr.bin/tmux/arguments.c index 06d4cc2f03e..f41edec9871 100644 --- a/usr.bin/tmux/arguments.c +++ b/usr.bin/tmux/arguments.c @@ -1,4 +1,4 @@ -/* $OpenBSD: arguments.c,v 1.2 2011/01/30 12:09:30 nicm Exp $ */ +/* $OpenBSD: arguments.c,v 1.3 2011/07/09 01:36:42 nicm Exp $ */ /* * Copyright (c) 2010 Nicholas Marriott <nicm@users.sourceforge.net> @@ -40,7 +40,7 @@ args_create(int argc, ...) if (argc == 0) args->argv = NULL; else - args->argv = xcalloc(argc, sizeof **args->argv); + args->argv = xcalloc(argc, sizeof *args->argv); va_start(ap, argc); for (i = 0; i < argc; i++) |
