Browse Source

Fix for -Wformat-security

tags/0.125.0rc1
falkTX Paul Davis 10 years ago
parent
commit
d5ffe0820c
2 changed files with 4 additions and 4 deletions
  1. +2
    -2
      jackd/engine.c
  2. +2
    -2
      libjack/port.c

+ 2
- 2
jackd/engine.c View File

@@ -4670,8 +4670,8 @@ jack_port_rename_notify (jack_engine_t *engine,
event.type = PortRename;
event.y.other_id = port->shared->id;
snprintf (event.x.name, JACK_PORT_NAME_SIZE-1, old_name);
snprintf (event.z.other_name, JACK_PORT_NAME_SIZE-1, new_name);
snprintf (event.x.name, JACK_PORT_NAME_SIZE-1, "%s", old_name);
snprintf (event.z.other_name, JACK_PORT_NAME_SIZE-1, "%s", new_name);
for (node = engine->clients; node; node = jack_slist_next (node)) {


+ 2
- 2
libjack/port.c View File

@@ -813,8 +813,8 @@ jack_port_rename (jack_client_t* client, jack_port_t *port, const char *new_name
req.type = PortNameChanged;

/* re-purpose an appropriate part of the request union to convey the names */
snprintf ((char *) req.x.connect.source_port, JACK_PORT_NAME_SIZE-1, old_name);
snprintf ((char *) req.x.connect.destination_port, JACK_PORT_NAME_SIZE-1, new_name);
snprintf ((char *) req.x.connect.source_port, JACK_PORT_NAME_SIZE-1, "%s", old_name);
snprintf ((char *) req.x.connect.destination_port, JACK_PORT_NAME_SIZE-1, "%s", new_name);
(void) jack_client_deliver_request (client, &req);
}


Loading…
Cancel
Save