]> git.pond.sub.org Git - empserver/blobdiff - src/lib/commands/rea.c
Support UTF-8 encoded Unicode for user communications.
[empserver] / src / lib / commands / rea.c
index e319eb78816b646566d674d9b5e10e0a1e61d1dd..b015d509eeebb3358d0a2c5eb35110522d19964a 100644 (file)
@@ -63,7 +63,7 @@ rea(void)
     int teles;
     int size;
     unsigned int nbytes;
-    s_char buf[4096];
+    s_char buf[4096]; /* buf is message text */
     int lasttype;
     int lastcnum;
     time_t lastdate;
@@ -168,7 +168,7 @@ rea(void)
            (void)fread(buf, sizeof(s_char), nbytes, telfp);
            buf[nbytes] = 0;
            if (readit)
-               prnf(buf);
+               uprnf(buf);
            tgm.tel_length -= nbytes;
        }
     }