summaryrefslogtreecommitdiff
path: root/utils/hp2ps
diff options
context:
space:
mode:
authorSimon Marlow <marlowsd@gmail.com>2012-05-23 06:30:38 -0500
committerSimon Marlow <marlowsd@gmail.com>2012-05-23 06:34:00 -0500
commit634fb8d3b569276504be317783ade54508633b10 (patch)
tree651f2d45e35c853466fa66d4623849bc3771ae41 /utils/hp2ps
parent22b51daaf41820e5451cb8dadf63e2a534c3efb4 (diff)
downloadhaskell-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.c1
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