$Log$
+Revision 619.6 2005/06/20 03:47:44 ajc
+* inetconf.c: in save_inetconf(), eliminate sizeof(x) where x is a pointer
+ to a heap-allocated buffer rather than a char[xxx]. This fixes a problem
+ reported by at least one site where the Internet configuration screen
+ was malfunctioning.
+
Revision 619.5 2005/06/19 04:11:52 ajc
* Integrated the second batch of new icons.
1998-12-03 Nathan Bryant <bryant@cs.usm.maine.edu>
* webserver.c: warning fix
-
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 */
}
}
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")) {