{"action":"opened","issue":{"url":"https://api.github.com/repos/miloyip/rapidjson/issues/354","labels_url":"https://api.github.com/repos/miloyip/rapidjson/issues/354/labels{/name}","comments_url":"https://api.github.com/repos/miloyip/rapidjson/issues/354/comments","events_url":"https://api.github.com/repos/miloyip/rapidjson/issues/354/events","html_url":"https://github.com/miloyip/rapidjson/issues/354","id":86570162,"number":354,"title":"Bug in tutorial.cpp","user":{"login":"MelosGmbhRadicke","id":12608806,"avatar_url":"https://avatars.githubusercontent.com/u/12608806?v=3","gravatar_id":"","url":"https://api.github.com/users/MelosGmbhRadicke","html_url":"https://github.com/MelosGmbhRadicke","followers_url":"https://api.github.com/users/MelosGmbhRadicke/followers","following_url":"https://api.github.com/users/MelosGmbhRadicke/following{/other_user}","gists_url":"https://api.github.com/users/MelosGmbhRadicke/gists{/gist_id}","starred_url":"https://api.github.com/users/MelosGmbhRadicke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MelosGmbhRadicke/subscriptions","organizations_url":"https://api.github.com/users/MelosGmbhRadicke/orgs","repos_url":"https://api.github.com/users/MelosGmbhRadicke/repos","events_url":"https://api.github.com/users/MelosGmbhRadicke/events{/privacy}","received_events_url":"https://api.github.com/users/MelosGmbhRadicke/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-06-09T11:49:02Z","updated_at":"2015-06-09T11:49:02Z","closed_at":null,"body":"Hi,\r\n\r\nI think there is a bug in \"tutorial.cpp\"\r\n\r\n    char buffer[sizeof(json)];\r\n    memcpy(buffer, json, sizeof(json));\r\n\r\nproperly is:\r\n\r\n    char buffer[strlen(jsonBill.c_str()) + 1];\r\n    buffer[strlen(jsonBill.c_str())] = '\\0';\r\n    memcpy(buffer, jsonBill.c_str(), strlen(jsonBill.c_str()) );\r\n\t\r\n...can this be?\r\n\r\nCU\r\n\r\nOlaf"}}