From 9bd71325f308d740da800b5c5066b8d8b9fdebba Mon Sep 17 00:00:00 2001 From: "gtm.daemon" Date: Thu, 3 Feb 2011 01:30:10 +0000 Subject: [Author: dmaclach] Fix for building GTM on Snow Leopard. We were getting errors for being unable to protect buffers smaller than 8 chars. R=aharper,thomasvl DELTA=7 (4 added, 0 deleted, 3 changed) --- AppKit/GTMCarbonEvent.m | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'AppKit/GTMCarbonEvent.m') diff --git a/AppKit/GTMCarbonEvent.m b/AppKit/GTMCarbonEvent.m index a0fd6ef..a2cf3f9 100644 --- a/AppKit/GTMCarbonEvent.m +++ b/AppKit/GTMCarbonEvent.m @@ -157,7 +157,9 @@ // description utliity for debugging // - (NSString *)description { - char cls[5]; + // Use 8 bytes because stack protection gives us a warning if we use a + // smaller buffer. + char cls[8]; UInt32 kind; // Need everything bigendian if we are printing out the class as a "string" -- cgit v1.2.3