gw: fix a minor copy/paste typo
authorFerry Huberts <ferry.huberts@pelagic.nl>
Mon, 24 Feb 2014 10:55:34 +0000 (11:55 +0100)
committerFerry Huberts <ferry.huberts@pelagic.nl>
Mon, 24 Feb 2014 10:55:49 +0000 (11:55 +0100)
No change in functionality

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
src/gateway.c

index 17d168e..c6ba787 100644 (file)
@@ -548,7 +548,7 @@ int olsr_init_gateways(void) {
       ifn->gw = NULL;
       ifn->mark = i + olsr_cnf->smart_gw_mark_offset_egress;
       egressif->mark = ifn->mark;
-      snprintf(&ifn->name[0], sizeof(ifn->name), egressif->name, egressif->mark);
+      snprintf(&ifn->name[0], sizeof(ifn->name), "%s", egressif->name);
 
       egressif = egressif->next;
       i++;