]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Fix copied code 6212/head
authorChris Hofstaedtler <chris.hofstaedtler@deduktiva.com>
Fri, 19 Jan 2018 18:57:37 +0000 (19:57 +0100)
committerPieter Lexis <pieter.lexis@powerdns.com>
Mon, 22 Jan 2018 09:06:51 +0000 (10:06 +0100)
(cherry picked from commit e4f772ceb545a883d4683d34dff0a38e023f98ee)

pdns/recursordist/test-syncres_cc.cc

index 2a9efd94cba64762f9963a5b1aa4fdd9e1dfd9fa..730edb86710fe086b82e9d18e1b1aff8a5ee031e 100644 (file)
@@ -66,7 +66,7 @@ void primeHints(void)
   arr.d_ttl=aaaarr.d_ttl=nsrr.d_ttl=time(nullptr)+3600000;
 
   for(char c='a';c<='m';++c) {
-    static char templ[40];
+    char templ[40];
     strncpy(templ,"a.root-servers.net.", sizeof(templ) - 1);
     templ[sizeof(templ)-1] = '\0';
     *templ=c;