about summary refs log tree commit homepage
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2022-11-16 09:26:44 +0000
committerEric Wong <e@80x24.org>2022-11-16 09:47:15 +0000
commita53f1a3d45f01370849ae9ea84d9c0aba750e3c7 (patch)
tree61332e2c4dce14d7bc18a5d6fffe64f423d8eb1d
parent0dd17455a25e38af776bd029f8d74bb99b99a955 (diff)
downloadmwrap-a53f1a3d45f01370849ae9ea84d9c0aba750e3c7.tar.gz
kbuf is always `struct src_loc', not `struct alloc_hdr'.
Fortunately, nobody really needs PATH_MAX size for pathnames, so
this wasn't a problem in practice.
-rw-r--r--mwrap_core.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/mwrap_core.h b/mwrap_core.h
index d9396e6..3abc3dd 100644
--- a/mwrap_core.h
+++ b/mwrap_core.h
@@ -179,7 +179,7 @@ struct alloc_hdr {
 
 /* $PATHNAME:$LINENO */
 static MWRAP_TSD char kbuf[
-        PATH_MAX + sizeof(":") + UINT2STR_MAX + sizeof(struct alloc_hdr)
+        sizeof(struct src_loc) + PATH_MAX + sizeof(":") + UINT2STR_MAX
 ];
 
 static struct alloc_hdr *ptr2hdr(void *p)