diff options
author | Přemysl Eric Janouch <p@janouch.name> | 2024-08-08 09:28:40 +0200 |
---|---|---|
committer | Přemysl Eric Janouch <p@janouch.name> | 2024-08-08 14:39:28 +0200 |
commit | e83cfa3c15810dc1df2468bc003f3014002a12b3 (patch) | |
tree | cc30e324d90ef181028a7f069468582a5a02f24f /paswitch.c | |
parent | 29c89942ce6a266fd30a218abb022f55805ec01c (diff) | |
download | desktop-tools-e83cfa3c15810dc1df2468bc003f3014002a12b3.tar.gz desktop-tools-e83cfa3c15810dc1df2468bc003f3014002a12b3.tar.xz desktop-tools-e83cfa3c15810dc1df2468bc003f3014002a12b3.zip |
Fix calloc argument order, add some consts
Diffstat (limited to 'paswitch.c')
-rw-r--r-- | paswitch.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -290,7 +290,7 @@ on_sink_info (pa_context *context, const pa_sink_info *info, int eol, sink->ports_len++; struct port *port = sink->ports = - xcalloc (sizeof *sink->ports, sink->ports_len); + xcalloc (sink->ports_len, sizeof *sink->ports); for (struct pa_sink_port_info **iter = info->ports; *iter; iter++) { port->name = xstrdup ((*iter)->name); |