diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2014-07-09 09:27:01 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2014-07-09 09:27:01 +0000 |
commit | 35d827b0283971863d0116bab75dc6b2942ee2d8 (patch) | |
tree | 994840f2311f3d531af06caa90f6554481dfdb74 /cgi.c | |
parent | 4d67d3e6505d789b0262b285697634541204c556 (diff) | |
download | mandoc-35d827b0283971863d0116bab75dc6b2942ee2d8.tar.gz |
oops, forgot to trim the newline character
Diffstat (limited to 'cgi.c')
-rw-r--r-- | cgi.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -940,6 +940,8 @@ pathgen(struct req *req) return; while (NULL != (dp = fgetln(fp, &dpsz))) { + if ('\n' == dp[dpsz - 1]) + dpsz--; req->p = mandoc_realloc(req->p, (req->psz + 1) * sizeof(char *)); req->p[req->psz++] = mandoc_strndup(dp, dpsz); |