]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
- Fix that get_option for cache-sizes does not print double newline.
authorWouter Wijngaards <wouter@nlnetlabs.nl>
Fri, 10 Apr 2015 13:43:44 +0000 (13:43 +0000)
committerWouter Wijngaards <wouter@nlnetlabs.nl>
Fri, 10 Apr 2015 13:43:44 +0000 (13:43 +0000)
git-svn-id: file:///svn/unbound/trunk@3395 be551aaa-1e26-0410-a405-d3ace91eadb9

doc/Changelog
util/config_file.c

index 82182e513a638995d1781864ce2218ce8fa0d1a4..295d160dcc06832151d107716c62bfea195f0444 100644 (file)
@@ -3,6 +3,7 @@
        - ratelimit feature, ratelimit: 100, or some sensible qps, can be
          used to turn it on.  It ratelimits recursion effort per zone.
          For particular names you can configure exceptions in unbound.conf.
+       - Fix that get_option for cache-sizes does not print double newline.
 
 8 April 2015: Wouter
        - Fix crash in dnstap: Do not try to log TCP responses after timeout.
index b402f0ef6fabef7bca3823ef5922455cf318a279..af06ed7f588e67f833706a43fbfd03798e000d0e 100644 (file)
@@ -595,8 +595,8 @@ config_collate_cat(struct config_strlist* list)
 #define O_MEM(opt, str, var) if(strcmp(opt, str)==0) { \
        if(cfg->var > 1024*1024*1024) { \
          size_t f=cfg->var/(size_t)1000000, b=cfg->var%(size_t)1000000; \
-         snprintf(buf, len, "%u%6.6u\n", (unsigned)f, (unsigned)b); \
-       } else snprintf(buf, len, "%u\n", (unsigned)cfg->var); \
+         snprintf(buf, len, "%u%6.6u", (unsigned)f, (unsigned)b); \
+       } else snprintf(buf, len, "%u", (unsigned)cfg->var); \
        func(buf, arg);}
 /** compare and print list option */
 #define O_LST(opt, name, lst) if(strcmp(opt, name)==0) { \