about summary refs log tree commit homepage
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2022-11-15 19:33:39 +0000
committerEric Wong <e@80x24.org>2022-11-16 09:25:12 +0000
commit0e12a57daf1155b198976f6e5bbe76730da56a73 (patch)
treedfba1ae74bca522cc03b373432e332e20725c1a2
parentf2521869d0a411a8d3a79c3961895a40eafa2b06 (diff)
downloadmwrap-0e12a57daf1155b198976f6e5bbe76730da56a73.tar.gz
This may be increased in the future if we add C addr2line support.
-rw-r--r--Mwrap.xs3
1 files changed, 2 insertions, 1 deletions
diff --git a/Mwrap.xs b/Mwrap.xs
index f441ca8..8939b88 100644
--- a/Mwrap.xs
+++ b/Mwrap.xs
@@ -208,8 +208,9 @@ struct alloc_hdr {
         size_t size;
 };
 
+/* $PATHNAME:$LINENO */
 static MWRAP_TSD char kbuf[
-        PATH_MAX + INT2STR_MAX + sizeof(struct alloc_hdr) + 2
+        PATH_MAX + sizeof(":") + INT2STR_MAX + sizeof(struct alloc_hdr)
 ];
 
 static struct alloc_hdr *ptr2hdr(void *p)