{"action":"created","issue":{"url":"https://api.github.com/repos/ARMmbed/sockets/issues/39","labels_url":"https://api.github.com/repos/ARMmbed/sockets/issues/39/labels{/name}","comments_url":"https://api.github.com/repos/ARMmbed/sockets/issues/39/comments","events_url":"https://api.github.com/repos/ARMmbed/sockets/issues/39/events","html_url":"https://github.com/ARMmbed/sockets/pull/39","id":120295986,"number":39,"title":"Add documentation, coverage hooks, and several formatting failure cases","user":{"login":"bremoran","id":2636227,"avatar_url":"https://avatars.githubusercontent.com/u/2636227?v=3","gravatar_id":"","url":"https://api.github.com/users/bremoran","html_url":"https://github.com/bremoran","followers_url":"https://api.github.com/users/bremoran/followers","following_url":"https://api.github.com/users/bremoran/following{/other_user}","gists_url":"https://api.github.com/users/bremoran/gists{/gist_id}","starred_url":"https://api.github.com/users/bremoran/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bremoran/subscriptions","organizations_url":"https://api.github.com/users/bremoran/orgs","repos_url":"https://api.github.com/users/bremoran/repos","events_url":"https://api.github.com/users/bremoran/events{/privacy}","received_events_url":"https://api.github.com/users/bremoran/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-12-03T23:26:57Z","updated_at":"2015-12-07T13:57:38Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/ARMmbed/sockets/pulls/39","html_url":"https://github.com/ARMmbed/sockets/pull/39","diff_url":"https://github.com/ARMmbed/sockets/pull/39.diff","patch_url":"https://github.com/ARMmbed/sockets/pull/39.patch"},"body":"This PR corrects several problems identified during test coverage updates\r\n* Documented all APIs\r\n* Added cmake coverage hooks\r\n* Added new tests for error cases in formatting\r\n\r\ncc @bogdanm @adbridge @niklas-arm @autopulated "},"comment":{"url":"https://api.github.com/repos/ARMmbed/sockets/issues/comments/162530444","html_url":"https://github.com/ARMmbed/sockets/pull/39#issuecomment-162530444","issue_url":"https://api.github.com/repos/ARMmbed/sockets/issues/39","id":162530444,"user":{"login":"niklas-arm","id":15176141,"avatar_url":"https://avatars.githubusercontent.com/u/15176141?v=3","gravatar_id":"","url":"https://api.github.com/users/niklas-arm","html_url":"https://github.com/niklas-arm","followers_url":"https://api.github.com/users/niklas-arm/followers","following_url":"https://api.github.com/users/niklas-arm/following{/other_user}","gists_url":"https://api.github.com/users/niklas-arm/gists{/gist_id}","starred_url":"https://api.github.com/users/niklas-arm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/niklas-arm/subscriptions","organizations_url":"https://api.github.com/users/niklas-arm/orgs","repos_url":"https://api.github.com/users/niklas-arm/repos","events_url":"https://api.github.com/users/niklas-arm/events{/privacy}","received_events_url":"https://api.github.com/users/niklas-arm/received_events","type":"User","site_admin":false},"created_at":"2015-12-07T13:57:38Z","updated_at":"2015-12-07T13:57:38Z","body":"`#define IPv64_PREFIX_STRLEN (sizeof(IPv64_PREFIX))` contain the terminator, which is not how `strlen()` does it.\r\nThis leads to `strncpy(buf, IPv64_PREFIX, IPv64_PREFIX_STRLEN);` also copying the terminator, which leads to problems when printing the buffer, since only `::ffff:` is printed without the actual IP ever being printed."}}