Project

General

Profile

Revision 365

corrected error on chat

View differences:

chat.c
137 137
                    hltp_send_string(buffer);
138 138
                    char buffer2[CHAT_MAX_SIZE+3] = "> ";
139 139
                    strncat(buffer2, buffer, strlen(buffer));
140
                    for(size_t j = CHAT_MAX_NUM-1; j; --j) text_set_string(t_text[i], text_get_string(t_text[i-1]));
140
                    for(size_t j = CHAT_MAX_NUM-1; j; --j){
141
                        text_set_string(t_text[j], text_get_string(t_text[j-1]));
142
                    }
141 143
                    text_set_string(t_text[0], buffer2);
142 144
                    for(size_t j = 0; j < CHAT_MAX_NUM; ++j){
143 145
                        if(text_get_string(t_text[j])[0] == '>'){

Also available in: Unified diff