]> granicus.if.org Git - apache/commitdiff
better apr_ctime() usage
authorJeff Trawick <trawick@apache.org>
Mon, 27 Aug 2007 00:53:41 +0000 (00:53 +0000)
committerJeff Trawick <trawick@apache.org>
Mon, 27 Aug 2007 00:53:41 +0000 (00:53 +0000)
  (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
modules/ldap/util_ldap_cache_mgr.c

index afddb2d72117a5691290feb2ead8ad6c54a9f91d..2217b20b7f10ea2882d63b38c7340d2a0aa2db70 100644 (file)
@@ -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;
index 6f2f6428bcb53ccf5078fd8a4afd0586e51833b1..0942cc48b8e692ef92571c345448f9760cd5749d 100644 (file)
@@ -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)) {