Skip to content

Commit

Permalink
main.c :modify for security
Browse files Browse the repository at this point in the history
  • Loading branch information
yuk7 committed Nov 19, 2017
1 parent 7f8bba4 commit b5f6c9d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions main.c
Original file line number Diff line number Diff line change
Expand Up @@ -249,11 +249,11 @@ int main(int argc,char *argv[])
}
}

wchar_t rArgs[100] = L"";
wchar_t rArgs[300] = L"";
for (int i=2;i<wargc;i++)
{
wcscat(rArgs,L" ");
wcscat(rArgs,wargv[i]);
wcscat_s(rArgs,ARRAY_LENGTH(rArgs),L" ");
wcscat_s(rArgs,ARRAY_LENGTH(rArgs,wargv[i]);
}

wchar_t wcmd[300] = L"wsl.exe ";
Expand Down

0 comments on commit b5f6c9d

Please sign in to comment.