* inetconf.c: in save_inetconf(), eliminate sizeof(x) where x is a pointer
[citadel.git] / webcit / inetconf.c
index 3da1719a6dccac92b9ad1e205722a046d1650ee6..5bfc232c2ba0ef29a9ffc1db03a42348c721f2f6 100644 (file)
@@ -172,10 +172,10 @@ void save_inetconf(void) {
 
        strcpy(newconfig, "");
        serv_printf("CONF GETSYS|application/x-citadel-internet-config");
-       serv_getln(buf, sizeof buf);
-       if (buf[0] == '1') while (serv_getln(buf, sizeof buf), strcmp(buf, "000")) {
-               extract_token(ename, buf, 0, '|', sizeof ename);
-               extract_token(etype, buf, 1, '|', sizeof etype);
+       serv_getln(buf, SIZ);
+       if (buf[0] == '1') while (serv_getln(buf, SIZ), strcmp(buf, "000")) {
+               extract_token(ename, buf, 0, '|', SIZ);
+               extract_token(etype, buf, 1, '|', SIZ);
                if (strlen(buf) == 0) {
                        /* skip blank lines */
                }
@@ -192,7 +192,7 @@ void save_inetconf(void) {
        }
 
        serv_printf("CONF PUTSYS|application/x-citadel-internet-config");
-       serv_getln(buf, sizeof buf);
+       serv_getln(buf, SIZ);
        if (buf[0] == '4') {
                serv_puts(newconfig);
                if (!strcasecmp(bstr("oper"), "add")) {