[Olsr-dev] [PATCH] Fix printf based warning in PUD
Henning Rogge
(spam-protected)
Thu May 24 15:59:33 CEST 2012
From 21a4b73a4a2c67e458f6865e91b6f20c8de963a4 Mon Sep 17 00:00:00 2001
From: Henning Rogge <(spam-protected)>
Date: Thu, 24 May 2012 15:56:48 +0200
Subject: [PATCH] Fix printf based warning in PUD
Signed-off-by: Henning Rogge <(spam-protected)>
---
lib/pud/src/configuration.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/lib/pud/src/configuration.c b/lib/pud/src/configuration.c
index 286768c..2be36be 100644
--- a/lib/pud/src/configuration.c
+++ b/lib/pud/src/configuration.c
@@ -344,7 +344,7 @@ static bool intSetupNodeIdBinaryString(void) {
invalidChars = nmea_string_has_invalid_chars(nodeid,
PUD_NODE_ID_NAME, &report[0], sizeof(report));
if (invalidChars) {
- pudError(false, &report[0]);
+ pudError(false, "%s", &report[0]);
return false;
}
@@ -1345,7 +1345,7 @@ int setTxNmeaMessagePrefix(const char *value, void
*data __attribute__ ((unused)
invalidChars = nmea_string_has_invalid_chars(value, valueName,
&report[0],
sizeof(report));
if (invalidChars) {
- pudError(false, &report[0]);
+ pudError(false, "%s", &report[0]);
return true;
}
--
1.7.5.4
--
Diplom-Informatiker Henning Rogge , Fraunhofer-Institut für
Kommunikation, Informationsverarbeitung und Ergonomie FKIE
Kommunikationssysteme (KOM)
Neuenahrer Straße 20, 53343 Wachtberg, Germany
Telefon +49 228 9435-961, Fax +49 228 9435 685
mailto:(spam-protected) http://www.fkie.fraunhofer.de
GPG: E1C6 0914 490B 3909 D944 F80D 4487 C67C 55EC CFE0
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 6156 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://lists.olsr.org/pipermail/olsr-dev/attachments/20120524/dbe93242/attachment.bin>
More information about the Olsr-dev
mailing list