From: simonmar Date: Tue, 18 Mar 2003 14:36:56 +0000 (+0000) Subject: [project @ 2003-03-18 14:36:56 by simonmar] X-Git-Tag: Approx_11550_changesets_converted~1066 X-Git-Url: http://git.megacz.com/?a=commitdiff_plain;h=428c025eaea3256b86f902640549c8e15414ac19;hp=428c025eaea3256b86f902640549c8e15414ac19;p=ghc-hetmet.git [project @ 2003-03-18 14:36:56 by simonmar] Fix a profiling crash on Windows. fprint_ccs used snprintf() to avoid overflowing a buffer; on mingw32 where snprintf() doesn't exist we were just using the straight sprintf(), which inevitably lead to a crash. Rewritten to use a homegrown non-overflowing string copying function - it actually looks nicer now, anwyay. ---