diff options
author | jgeboski <jgeboski@gmail.com> | 2015-01-27 20:20:46 -0500 |
---|---|---|
committer | jgeboski <jgeboski@gmail.com> | 2015-01-27 20:20:46 -0500 |
commit | 3c3a91a4472f4b58da7a44f25336934571311701 (patch) | |
tree | b40156c0f600d4160fd9d04b9c4257674919747d /facebook/facebook-api.c | |
parent | d930418085de78ff5e2ba8e4de53e7085e8d00a8 (diff) | |
download | bitlbee-facebook-3c3a91a4472f4b58da7a44f25336934571311701.tar.gz bitlbee-facebook-3c3a91a4472f4b58da7a44f25336934571311701.tar.bz2 bitlbee-facebook-3c3a91a4472f4b58da7a44f25336934571311701.tar.xz |
Check format string security at compile-time
This enables various format string security checks by the compiler in
attempt to avoid run-time failures.
Diffstat (limited to 'facebook/facebook-api.c')
-rw-r--r-- | facebook/facebook-api.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/facebook/facebook-api.c b/facebook/facebook-api.c index bc1623d..269cd92 100644 --- a/facebook/facebook-api.c +++ b/facebook/facebook-api.c @@ -453,7 +453,7 @@ static void fb_api_cb_publish_mr(fb_api_t *api, const GByteArray *pload) if (!g_queue_is_empty(api->msgs)) { msg = g_queue_peek_head(api->msgs); - fb_api_publish(api, "/send_message2", msg, NULL); + fb_api_publish(api, "/send_message2", "%s", msg); } finish: @@ -1009,7 +1009,7 @@ void fb_api_message(fb_api_t *api, fb_id_t id, gboolean thread, "}", msg, tpfx, id, api->uid, msgid); if (g_queue_is_empty(api->msgs)) - fb_api_publish(api, "/send_message2", rmsg, NULL); + fb_api_publish(api, "/send_message2", "%s", rmsg); g_queue_push_tail(api->msgs, rmsg); } |