diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2009-03-08 13:01:35 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2009-03-08 13:01:35 +0000 |
commit | a15e79703c785a35eaafcfd8b9db71cba1361f24 (patch) | |
tree | 8b47c6270784d0367886d164a55df124b15656f9 | |
parent | 764e05c60c54c1e2184996ce773ca5725d991416 (diff) | |
download | mandoc-a15e79703c785a35eaafcfd8b9db71cba1361f24.tar.gz |
Memory-corruption fix.
-rw-r--r-- | action.c | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -241,10 +241,8 @@ post_ex(struct mdoc *mdoc) mdoc_argnames[MDOC_Std], mdoc->meta.name); - assert(1 == mdoc->last->args->argv[0].sz); - - mdoc->last->args->argv[0].sz = 1; mdoc->last->args->argv[0].value = xcalloc(1, sizeof(char *)); + mdoc->last->args->argv[0].sz = 1; mdoc->last->args->argv[0].value[0] = xstrdup(mdoc->meta.name); return(1); } |