mirror of
https://github.com/libretro/libretro-common.git
synced 2025-04-02 10:31:51 -04:00
Updates
This commit is contained in:
parent
55244beb2d
commit
73e836b1ce
2 changed files with 4 additions and 4 deletions
|
@ -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)
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue