]> code.citadel.org Git - citadel.git/blobdiff - webcit/serv_func.c
* Brought over the newer string tokenizer from Citadel
[citadel.git] / webcit / serv_func.c
index 38b4fdd80c18069c9f8954a9c9426b793985b92e..be9e41323e8f132ff8e61afece156853c488c498 100644 (file)
@@ -36,7 +36,7 @@ struct serv_info serv_info;
  */
 void get_serv_info(char *browser_host, char *user_agent)
 {
-       char buf[256];
+       char buf[SIZ];
        int a;
 
        serv_printf("IDEN %d|%d|%d|%s|%s",
@@ -100,14 +100,14 @@ void fmout(FILE * fp)
 
        int intext = 0;
        int bq = 0;
-       char buf[256];
+       char buf[SIZ];
 
        wprintf("<DIV ALIGN=JUSTIFY>\n");
        while (1) {
                if (fp == NULL)
                        serv_gets(buf);
                if (fp != NULL) {
-                       if (fgets(buf, 256, fp) == NULL)
+                       if (fgets(buf, SIZ, fp) == NULL)
                                strcpy(buf, "000");
                        buf[strlen(buf) - 1] = 0;
                }
@@ -153,7 +153,7 @@ void fmout(FILE * fp)
  */
 void text_to_server(char *ptr)
 {
-       char buf[256];
+       char buf[SIZ];
        int ch, a, pos;
 
        pos = 0;
@@ -197,7 +197,7 @@ void text_to_server(char *ptr)
  */
 void server_to_text()
 {
-       char buf[256];
+       char buf[SIZ];
 
        int count = 0;