Skip to content

Commit

Permalink
FIX: Don't return stack-allocated character buffer to Vim.
Browse files Browse the repository at this point in the history
  • Loading branch information
inkarkat committed May 28, 2013
1 parent aac1374 commit e93e625
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion misc/shell/shell.c
Expand Up @@ -65,6 +65,7 @@ static const char *Failure(const char *result) /* {{{1 */
return result;
}

char rv[500];
static const char *execute(char *command, int wait) /* {{{1 */
{
STARTUPINFO si;
Expand All @@ -76,7 +77,6 @@ static const char *execute(char *command, int wait) /* {{{1 */
if (!wait) {
return Success(NULL);
} else {
char rv[500];
DWORD exit_code;
if (WaitForSingleObject(pi.hProcess, INFINITE) != WAIT_FAILED
&& GetExitCodeProcess(pi.hProcess, &exit_code)
Expand Down

0 comments on commit e93e625

Please sign in to comment.