From a8068f38bf6dc3997a57e27c1837242b983fe40c Mon Sep 17 00:00:00 2001 From: Fabrice Desclaux Date: Tue, 21 Feb 2012 19:28:43 +0100 Subject: [PATCH] parse_neighbor: replace printf printf_P --- parse_neighbor.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/parse_neighbor.c b/parse_neighbor.c index 0285b03..3faa0c7 100644 --- a/parse_neighbor.c +++ b/parse_neighbor.c @@ -114,7 +114,7 @@ complete_get_elt_neighbor(parse_pgm_token_hdr_t *tk, int8_t idx, if (neigh == NULL) return -1; - len = snprintf(dstbuf, size, "%s", neigh->name); + len = snprintf_P(dstbuf, size, PSTR("%s"), neigh->name); if (len < 0 || len >= size) return -1; @@ -126,7 +126,7 @@ static int8_t help_neighbor(parse_pgm_token_hdr_t *tk, char *dstbuf, uint8_t size) { - snprintf(dstbuf, size, "Neighbor"); + snprintf_P(dstbuf, size, PSTR("Neighbor")); return 0; } -- 2.39.5