Permalink
Browse files

FIX: Don't return stack-allocated character buffer to Vim.

  • Loading branch information...
1 parent aac1374 commit e93e625b1046908bc7030093c08dd4fd897f5272 @inkarkat inkarkat committed May 28, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 misc/shell/shell.c
View
@@ -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;
@@ -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)

0 comments on commit e93e625

Please sign in to comment.