This commit is contained in:
twinaphex 2017-09-30 07:53:01 +02:00
parent 55244beb2d
commit 73e836b1ce
2 changed files with 4 additions and 4 deletions

View file

@ -568,7 +568,7 @@ int filestream_close(RFILE *stream)
if (!stream)
goto error;
if (stream->ext && !string_is_empty(stream->ext))
if (!string_is_empty(stream->ext))
free(stream->ext);
#if defined(PSP)

View file

@ -161,9 +161,6 @@ char *word_wrap(char* buffer, const char *string, int line_width, bool unicode)
unsigned char_len;
unsigned j = i;
character = utf8skip(&string[i], 1);
char_len = character - &string[i];
/* check if end of string reached */
if (i == len)
{
@ -171,6 +168,9 @@ char *word_wrap(char* buffer, const char *string, int line_width, bool unicode)
return buffer;
}
character = utf8skip(&string[i], 1);
char_len = character - &string[i];
if (!unicode)
counter += char_len - 1;