{"action":"created","issue":{"url":"https://api.github.com/repos/coova/coova-chilli/issues/125","labels_url":"https://api.github.com/repos/coova/coova-chilli/issues/125/labels{/name}","comments_url":"https://api.github.com/repos/coova/coova-chilli/issues/125/comments","events_url":"https://api.github.com/repos/coova/coova-chilli/issues/125/events","html_url":"https://github.com/coova/coova-chilli/pull/125","id":117709135,"number":125,"title":"Drop the use of safe_snprintf","user":{"login":"sevan","id":150520,"avatar_url":"https://avatars.githubusercontent.com/u/150520?v=3","gravatar_id":"","url":"https://api.github.com/users/sevan","html_url":"https://github.com/sevan","followers_url":"https://api.github.com/users/sevan/followers","following_url":"https://api.github.com/users/sevan/following{/other_user}","gists_url":"https://api.github.com/users/sevan/gists{/gist_id}","starred_url":"https://api.github.com/users/sevan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sevan/subscriptions","organizations_url":"https://api.github.com/users/sevan/orgs","repos_url":"https://api.github.com/users/sevan/repos","events_url":"https://api.github.com/users/sevan/events{/privacy}","received_events_url":"https://api.github.com/users/sevan/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-11-18T23:52:27Z","updated_at":"2015-11-19T00:54:47Z","closed_at":"2015-11-18T23:55:20Z","pull_request":{"url":"https://api.github.com/repos/coova/coova-chilli/pulls/125","html_url":"https://github.com/coova/coova-chilli/pull/125","diff_url":"https://github.com/coova/coova-chilli/pull/125.diff","patch_url":"https://github.com/coova/coova-chilli/pull/125.patch"},"body":"Use the implementation of snprintf() supplied by libc.\r\n"},"comment":{"url":"https://api.github.com/repos/coova/coova-chilli/issues/comments/157912393","html_url":"https://github.com/coova/coova-chilli/pull/125#issuecomment-157912393","issue_url":"https://api.github.com/repos/coova/coova-chilli/issues/125","id":157912393,"user":{"login":"sevan","id":150520,"avatar_url":"https://avatars.githubusercontent.com/u/150520?v=3","gravatar_id":"","url":"https://api.github.com/users/sevan","html_url":"https://github.com/sevan","followers_url":"https://api.github.com/users/sevan/followers","following_url":"https://api.github.com/users/sevan/following{/other_user}","gists_url":"https://api.github.com/users/sevan/gists{/gist_id}","starred_url":"https://api.github.com/users/sevan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sevan/subscriptions","organizations_url":"https://api.github.com/users/sevan/orgs","repos_url":"https://api.github.com/users/sevan/repos","events_url":"https://api.github.com/users/sevan/events{/privacy}","received_events_url":"https://api.github.com/users/sevan/received_events","type":"User","site_admin":false},"created_at":"2015-11-19T00:54:47Z","updated_at":"2015-11-19T00:54:47Z","body":"You just need to need to pass the size of the buffer, the function handles the null termination\r\n\"snprintf() and vsnprintf() will write at most size-1 of the characters printed into the output string (the size'th character then gets the terminating ‘\\0’);\"\r\nWe don't need to use sizeof(buffer)-1\r\nSee http://www.openbsd.org/cgi-bin/man.cgi/OpenBSD-current/man3/asprintf.3?query=snprintf&sec=3"}}