Mercurial > hg > freeDiameter
diff libfdcore/p_out.c @ 1119:79dd22145f52
Fix a number of compilation warnings
author | Sebastien Decugis <sdecugis@freediameter.net> |
---|---|
date | Tue, 14 May 2013 11:04:20 +0800 |
parents | eb4ce68b6e5c |
children | 56c36d1007b4 |
line wrap: on
line diff
--- a/libfdcore/p_out.c Tue May 14 09:56:36 2013 +0800 +++ b/libfdcore/p_out.c Tue May 14 11:04:20 2013 +0800 @@ -131,7 +131,7 @@ { if (msg) { char buf[256]; - snprintf(buf, sizeof(buf), "Error while sending this message: s", strerror(ret)); + snprintf(buf, sizeof(buf), "Error while sending this message: %s", strerror(ret)); fd_hook_call(HOOK_MESSAGE_DROPPED, msg, NULL, buf, fd_msg_pmdl_get(msg)); fd_msg_free(msg); } @@ -185,7 +185,7 @@ { if (msg) { char buf[256]; - snprintf(buf, sizeof(buf), "Error while sending this message: s", strerror(ret)); + snprintf(buf, sizeof(buf), "Error while sending this message: %s", strerror(ret)); fd_hook_call(HOOK_MESSAGE_DROPPED, *msg, NULL, buf, fd_msg_pmdl_get(*msg)); fd_msg_free(*msg); *msg = NULL;