summaryrefslogtreecommitdiff
path: root/support/httxt2dbm.c
diff options
context:
space:
mode:
authorChristophe Jaillet <jailletc36@apache.org>2012-12-14 22:40:38 +0000
committerChristophe Jaillet <jailletc36@apache.org>2012-12-14 22:40:38 +0000
commiteca56ae3261d6952f4c4d67873d5629dbfcf40c2 (patch)
tree4103099d0b3b8439d9d2f52f67733009a87a984f /support/httxt2dbm.c
parentff81e58f05e0c10ac26a74cbf2cfe4e855c3a0c6 (diff)
downloadhttpd-eca56ae3261d6952f4c4d67873d5629dbfcf40c2.tar.gz
httxt2dbm: Correct length computation for the 'value' stored in the DBM file PR 47650
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1422135 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'support/httxt2dbm.c')
-rw-r--r--support/httxt2dbm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/support/httxt2dbm.c b/support/httxt2dbm.c
index 8792f944b9..12606c3a5e 100644
--- a/support/httxt2dbm.c
+++ b/support/httxt2dbm.c
@@ -154,7 +154,7 @@ static apr_status_t to_dbm(apr_dbm_t *dbm, apr_file_t *fp, apr_pool_t *pool)
}
dbmval.dptr = apr_pstrmemdup(p, value, c - value);
- dbmval.dsize = (c - line);
+ dbmval.dsize = (c - value);
if (verbose) {
apr_file_printf(errfile, " '%s' -> '%s'"NL,