Remove the char[1024] strings from dynconfig. Replace
[kai/samba.git] / source3 / nmbd / nmbd_winsserver.c
index 7344a29fe411d78cf4317e61fdb883f60e5945e4..96938b011a26c05d888653dc003f27477baa2df7 100644 (file)
@@ -2366,7 +2366,7 @@ void wins_write_database(time_t t, bool background)
                }
        }
 
-       if (asprintf(&fname, "%s/%s", dyn_STATEDIR(), WINS_LIST) < 0) {
+       if (asprintf(&fname, "%s/%s", get_dyn_STATEDIR(), WINS_LIST) < 0) {
                goto err_exit;
        }
        /* This is safe as the 0 length means "don't expand". */