From bb7d4bcc7770bda30ce9610e8ca17463a9c7e1a6 Mon Sep 17 00:00:00 2001 From: Fabrice Desclaux Date: Tue, 21 Feb 2012 19:34:24 +0100 Subject: [PATCH] xbee_neighbor: replace printf printf_P --- xbee_neighbor.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xbee_neighbor.c b/xbee_neighbor.c index fc4fcda..22daa02 100644 --- a/xbee_neighbor.c +++ b/xbee_neighbor.c @@ -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; -- 2.39.5