diff options
author | Simon Marlow <marlowsd@gmail.com> | 2012-05-23 06:30:38 -0500 |
---|---|---|
committer | Simon Marlow <marlowsd@gmail.com> | 2012-05-23 06:34:00 -0500 |
commit | 634fb8d3b569276504be317783ade54508633b10 (patch) | |
tree | 651f2d45e35c853466fa66d4623849bc3771ae41 /utils/hp2ps | |
parent | 22b51daaf41820e5451cb8dadf63e2a534c3efb4 (diff) | |
download | haskell-634fb8d3b569276504be317783ade54508633b10.tar.gz |
escape(): don't forget the final '\0'
Hopefully should fix random "bad heap profile" failures in the nightly
builds.
Diffstat (limited to 'utils/hp2ps')
-rw-r--r-- | 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 eda839597a..22ad106194 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 |