guess what? another fix

This commit is contained in:
Andrew Pamment 2016-08-20 21:25:46 +10:00
parent c9885c1485
commit d9793ab37d
2 changed files with 10 additions and 10 deletions

View File

@ -428,12 +428,12 @@ char *www_email_display(struct user_record *user, int email) {
chars = 0;
for (i=0;i<strlen(body);i++) {
if (body[i] == '\r' || chars == 78) {
if (body[i] == '\r') {
sprintf(buffer, "\n&gt; ");
if (chars == 78) {
chars = 0;
} else if (chars == 78) {
sprintf(buffer, "\n&gt; %c", body[i]);
chars = 1;
}
} else {
sprintf(buffer, "%c", body[i]);
chars ++;

View File

@ -512,12 +512,12 @@ char *www_msgs_messageview(struct user_record *user, int conference, int area, i
chars = 0;
for (i=0;i<strlen(body);i++) {
if (body[i] == '\r' || chars == 78) {
if (body[i] == '\r') {
sprintf(buffer, "\n&gt; ");
if (chars == 78) {
chars = 0;
} else if (chars == 78) {
sprintf(buffer, "\n&gt; %c", body[i]);
chars = 1;
}
} else {
sprintf(buffer, "%c", body[i]);
chars ++;