diff options
author | Dmitry Kozlov <xeb@mail.ru> | 2011-01-17 18:08:11 +0300 |
---|---|---|
committer | Dmitry Kozlov <xeb@mail.ru> | 2011-01-17 18:08:11 +0300 |
commit | c783f297faa2453daca7189182a17f913e003ccc (patch) | |
tree | 0527171103dbe568658ea21262e1027b7023bf9a /accel-pppd/memdebug.c | |
parent | 56762d9574d05bff9709c856f9f466c51156f549 (diff) | |
download | accel-ppp-c783f297faa2453daca7189182a17f913e003ccc.tar.gz accel-ppp-c783f297faa2453daca7189182a17f913e003ccc.zip |
memory usage optimization
Diffstat (limited to 'accel-pppd/memdebug.c')
-rw-r--r-- | accel-pppd/memdebug.c | 4 |
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; |