Skip to content

Commit

Permalink
Fixes STR #3040
Browse files Browse the repository at this point in the history
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10089 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
  • Loading branch information
erco77 committed Jan 31, 2014
1 parent e19ea8e commit 1adf939
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/fl_utf8.cxx
Expand Up @@ -609,7 +609,7 @@ int fl_execvp(const char *file, char *const *argv)
return _execvp(fl_utf2mbcs(file), argv);
#else
size_t l = strlen(file);
int i, n, ret;
int i, n;
xchar **ar;
// wbuf = (xchar*)realloc(wbuf, sizeof(xchar) * (l+1));
// wbuf[fl_utf2unicode((const unsigned char*)file, l, wbuf)] = 0;
Expand All @@ -634,14 +634,14 @@ int fl_execvp(const char *file, char *const *argv)
i++;
}
ar[n] = NULL;
ret = _wexecvp(wbuf, ar);
_wexecvp(wbuf, ar); // STR #3040
i = 0;
while (i <= n) {
free(ar[i]);
i++;
}
free(ar);
return ret;
return -1; // STR #3040
#endif
#else
return execvp(file, argv);
Expand Down

0 comments on commit 1adf939

Please sign in to comment.