Skip to content

Commit

Permalink
Fixed bug: If Char with wchar connection, char contains double byte c…
Browse files Browse the repository at this point in the history
…haracters (such as Chinese characters), the "wstr = char & wchar" will becomes "wstr = char & Chrw (0) & wchar".
  • Loading branch information
skyfish4tb authored and jayrm committed Mar 24, 2019
1 parent 8d3c2b2 commit 5272e3b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rtlib/strw_convconcat.c
Expand Up @@ -61,7 +61,7 @@ FBCALL FB_WCHAR *fb_WstrConcatAW( const void *str1, ssize_t str1_size, const FB_
dst = fb_wstr_AllocTemp( str1_len + str2_len );

/* do the concatenation */
fb_wstr_ConvFromA( dst, str1_len, str1_ptr );
str1_len = fb_wstr_ConvFromA( dst, str1_len, str1_ptr );
if( str2_len > 0 )
fb_wstr_Move( &dst[str1_len], str2, str2_len + 1 );
}
Expand Down

0 comments on commit 5272e3b

Please sign in to comment.