[project @ 2003-03-18 14:36:56 by simonmar]
authorsimonmar <unknown>
Tue, 18 Mar 2003 14:36:56 +0000 (14:36 +0000)
committersimonmar <unknown>
Tue, 18 Mar 2003 14:36:56 +0000 (14:36 +0000)
commit428c025eaea3256b86f902640549c8e15414ac19
treebe20dd3e9c1b6b7ed7a15d344d55ec23abb151ca
parentc1d0aa931d8468c5fc02f069f2a5f32b057f139c
[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.
ghc/rts/ProfHeap.c