From 1c98c19f06deb97e13f4ac36798778fc38d66c83 Mon Sep 17 00:00:00 2001 From: Jeff Trawick Date: Mon, 27 Aug 2007 00:53:41 +0000 Subject: [PATCH] better apr_ctime() usage (too bad it is apr_ctime_LEN instead of apr_ctime_SIZE) git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@569938 13f79535-47bb-0310-9956-ffa450edef68 --- modules/ldap/util_ldap_cache.c | 6 +++--- modules/ldap/util_ldap_cache_mgr.c | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/modules/ldap/util_ldap_cache.c b/modules/ldap/util_ldap_cache.c index afddb2d721..2217b20b7f 100644 --- a/modules/ldap/util_ldap_cache.c +++ b/modules/ldap/util_ldap_cache.c @@ -79,7 +79,7 @@ void util_ldap_url_node_free(util_ald_cache_t *cache, void *n) void util_ldap_url_node_display(request_rec *r, util_ald_cache_t *cache, void *n) { util_url_node_t *node = n; - char date_str[APR_CTIME_LEN+1]; + char date_str[APR_CTIME_LEN]; const char *type_str; util_ald_cache_t *cache_node; int x; @@ -218,7 +218,7 @@ void util_ldap_search_node_free(util_ald_cache_t *cache, void *n) void util_ldap_search_node_display(request_rec *r, util_ald_cache_t *cache, void *n) { util_search_node_t *node = n; - char date_str[APR_CTIME_LEN+1]; + char date_str[APR_CTIME_LEN]; apr_ctime(date_str, node->lastbind); @@ -288,7 +288,7 @@ void util_ldap_compare_node_free(util_ald_cache_t *cache, void *n) void util_ldap_compare_node_display(request_rec *r, util_ald_cache_t *cache, void *n) { util_compare_node_t *node = n; - char date_str[APR_CTIME_LEN+1]; + char date_str[APR_CTIME_LEN]; char *cmp_result; char *sub_groups_val; char *sub_groups_checked; diff --git a/modules/ldap/util_ldap_cache_mgr.c b/modules/ldap/util_ldap_cache_mgr.c index 6f2f6428bc..0942cc48b8 100644 --- a/modules/ldap/util_ldap_cache_mgr.c +++ b/modules/ldap/util_ldap_cache_mgr.c @@ -602,7 +602,7 @@ char *util_ald_cache_display(request_rec *r, util_ldap_state_t *st) if (r->args && strlen(r->args)) { char cachetype[5], lint[2]; unsigned int id, off; - char date_str[APR_CTIME_LEN+1]; + char date_str[APR_CTIME_LEN]; if ((3 == sscanf(r->args, scanfmt, cachetype, &id, &off, lint)) && (id < util_ldap_cache->size)) { -- 2.40.0