]> git.droids-corp.org - protos/xbee-avr.git/commitdiff
xbee_neighbor: replace printf printf_P
authorFabrice Desclaux <serpilliere@droids-corp.org>
Tue, 21 Feb 2012 18:34:24 +0000 (19:34 +0100)
committerFabrice Desclaux <serpilliere@droids-corp.org>
Tue, 21 Feb 2012 18:34:24 +0000 (19:34 +0100)
xbee_neighbor.c

index fc4fcdad901125787f43310786588666dbc52fd6..22daa0216e613ba445609f7b34c23c3979150e1a 100644 (file)
@@ -86,7 +86,7 @@ struct xbee_neigh *xbee_neigh_add(struct xbee_dev *dev, const char *name,
                return NULL;
 
        neigh->addr = addr;
-       snprintf(neigh->name, sizeof(neigh->name), "%s", name);
+       snprintf_P(neigh->name, sizeof(neigh->name), PSTR("%s"), name);
        LIST_INSERT_HEAD(&dev->neigh_list, neigh, next);
 
        return neigh;