Prebuild the data structure for builtin macros
[exim.git] / src / src / route.c
index e30ae0e68523c88d2b24574b41bb01f0e53e0c69..857fc65db40ef6f78e4bfbdd1025c9dbf2a4c76a 100644 (file)
@@ -157,7 +157,7 @@ options_from_list(optionlist_routers, nelem(optionlist_routers), US"ROUTERS", NU
 
 for (ri = routers_available; ri->driver_name[0]; ri++)
   {
-  snprintf(buf, sizeof(buf), "_DRIVER_ROUTER_%T", ri->driver_name);
+  spf(buf, sizeof(buf), "_DRIVER_ROUTER_%T", ri->driver_name);
   builtin_macro_create(buf);
   options_from_list(ri->options, (unsigned)*ri->options_count, US"ROUTER", ri->driver_name);
   }