Repository : ssh://darcs.haskell.org//srv/darcs/ghc

On branch  : master

http://hackage.haskell.org/trac/ghc/changeset/634fb8d3b569276504be317783ade54508633b10

>---------------------------------------------------------------

commit 634fb8d3b569276504be317783ade54508633b10
Author: Simon Marlow <marlo...@gmail.com>
Date:   Wed May 23 06:30:38 2012 -0500

    escape(): don't forget the final '\0'
    
    Hopefully should fix random "bad heap profile" failures in the nightly
    builds.

>---------------------------------------------------------------

 utils/hp2ps/Key.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/utils/hp2ps/Key.c b/utils/hp2ps/Key.c
index eda8395..22ad106 100644
--- a/utils/hp2ps/Key.c
+++ b/utils/hp2ps/Key.c
@@ -50,6 +50,7 @@ escape(char *result, const char *name)
         }
         *result++ = *name++;
     }
+    *result = '\0';
 }
 
 static void



_______________________________________________
Cvs-ghc mailing list
Cvs-ghc@haskell.org
http://www.haskell.org/mailman/listinfo/cvs-ghc

Reply via email to