Cleanups to word_wrap

This commit is contained in:
twinaphex 2017-03-05 19:02:32 +01:00
parent 63973a52e0
commit c70b8c42c5

View File

@ -171,10 +171,10 @@ char* word_wrap(char* buffer, char* string, int line_width)
while(i < strlen(string))
{
int counter;
unsigned counter;
/* copy string until the end of the line is reached */
for (counter = 1; counter <= line_width; counter++)
for (counter = 1; counter <= (unsigned)line_width; counter++)
{
/* check if end of string reached */
if (i == strlen(string))