{"thread":{"id":"87","subject":"[patch] Fix off by one error in show-diff.c:sq_expand","startedAt":"2005-04-17T15:53:52Z","lastAt":"2005-04-17T15:53:52Z","messageCount":1,"participants":["Brad Roberts"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"486","messageId":"Pine.LNX.4.44.0504170852420.2625-100000@bellevue.puremagic.com","threadId":"87","inReplyTo":null,"subject":"[patch] Fix off by one error in show-diff.c:sq_expand","fromName":"Brad Roberts","fromEmail":"braddr@puremagic.com","sentAt":"2005-04-17T15:53:52Z","receivedAt":"2005-04-17T15:53:52Z","isPatch":true,"sender":{"key":"braddr@puremagic.com","avatar":null},"body":"tree b2eb41fec5cb7a3b83b53f1eb59e59785e57cf5d\nparent 1c45567134945bccefc1b5fbacc2862cd8f346c4\nauthor Brad Roberts <braddr@puremagic.com> 1113752911 -0700\ncommitter Brad Roberts,,, <braddr@gameboy2> 1113752911 -0700\n\nFix off by one error in sq_expand, forgot space for the null.\n\nSigned-off-by: Brad Roberts <braddr@puremagic.com>\n\n show-diff.c |    2 +-\n 1 files changed, 1 insertion(+), 1 deletion(-)\n\nIndex: show-diff.c\n===================================================================\n--- f9e06a309f63ac6858d019b51f2172283378d2ef/show-diff.c  (mode:100644 sha1:d85d79b97a59342390bd34da09049dd58d56900f)\n+++ b2eb41fec5cb7a3b83b53f1eb59e59785e57cf5d/show-diff.c  (mode:100644 sha1:462f88a67cb3a100bbf307e567eebbcf911292ce)\n@@ -36,7 +36,7 @@\n \tif (buf_size < cnt) {\n \t\tfree(buf);\n \t\tbuf_size = cnt;\n-\t\tbuf = malloc(cnt);\n+\t\tbuf = malloc(cnt+1);\n \t}\n\n \tcp = buf;\n\n"}]}