*** empty log message ***
[citadel.git] / webcit / siteconfig.c
index 46f64c4094d3148599025aed30032d41ccb98401..26462030ade6a10ff38e0fdf5c369500344141f9 100644 (file)
@@ -680,7 +680,7 @@ void siteconfig(void)
        serv_printf("CONF set");
        serv_getln(buf, sizeof buf);
        if (buf[0] != '4') {
-               strcpy(WC->ImportantMessage, &buf[4]);
+               safestrncpy(WC->ImportantMessage, &buf[4], sizeof WC->ImportantMessage);
                display_siteconfig();
                return;
        }
@@ -733,6 +733,7 @@ void siteconfig(void)
        serv_printf("SPEX mailboxes|%d|%d", atoi(bstr("mboxpolicy")), atoi(bstr("mboxvalue")));
        serv_getln(buf, sizeof buf);
 
-       strcpy(WC->ImportantMessage, "System configuration has been updated.");
+       safestrncpy(WC->ImportantMessage, "System configuration has been updated.",
+               sizeof WC->ImportantMessage);
        display_siteconfig();
 }