summaryrefslogtreecommitdiff
path: root/accel-pppd/memdebug.c
diff options
context:
space:
mode:
Diffstat (limited to 'accel-pppd/memdebug.c')
-rw-r--r--accel-pppd/memdebug.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/accel-pppd/memdebug.c b/accel-pppd/memdebug.c
index c33e34b..8e9dd4b 100644
--- a/accel-pppd/memdebug.c
+++ b/accel-pppd/memdebug.c
@@ -30,7 +30,7 @@
struct mem_t
{
struct list_head entry;
- char fname[PATH_MAX];
+ const char *fname;
int line;
size_t size;
uint64_t magic2;
@@ -48,7 +48,7 @@ struct mem_t *_md_malloc(size_t size, const char *fname, int line)
if (size > 4096)
line = 0;
- strcpy(mem->fname, fname);
+ mem->fname = fname;
mem->line = line;
mem->size = size;
mem->magic1 = MAGIC1;