Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit67345f8

Browse files
committed
Long multibyte sequence support in make_utf8_path
1 parent88fbea3 commit67345f8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎src/port/path.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -782,7 +782,7 @@ const wchar_t* make_wc_name(const char* name) {
782782
constchar*make_utf8_path(constwchar_t*s) {
783783
intlen;
784784
size_tsize= (size_t)wcslen(s)+1;
785-
char*p= (char*)malloc(size*sizeof(wchar_t));
785+
char*p= (char*)malloc(size*6);
786786
len=WideCharToMultiByte(CP_UTF8,0,s,size,p,size*sizeof(wchar_t),NULL,NULL);
787787
returnp;
788788
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp