[commit: ghc] ghc-7.4: escape(): don't forget the final '\0' (3786319)

Paolo Capriotti p.capriotti at gmail.com
Tue Jun 5 15:58:56 CEST 2012


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

On branch  : ghc-7.4

http://hackage.haskell.org/trac/ghc/changeset/37863195cb89a30bbcb012147968ce9e6e7754df

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

commit 37863195cb89a30bbcb012147968ce9e6e7754df
Author: Simon Marlow <marlowsd at 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.
    
    MERGED from commit 634fb8d3b569276504be317783ade54508633b10

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

 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





More information about the Cvs-ghc mailing list