diff options
author | Michael Roitzsch <mroi@users.sourceforge.net> | 2004-03-03 19:59:43 +0000 |
---|---|---|
committer | Michael Roitzsch <mroi@users.sourceforge.net> | 2004-03-03 19:59:43 +0000 |
commit | b5ff783083547d2fb13f7a5a2cc0ecad41c21e8c (patch) | |
tree | b3acd571a6bf6de35051115be2bcb4f07127026f | |
parent | 4d1de7e27ea81bbd167642be7ef0678124e6eb3d (diff) | |
download | xine-lib-b5ff783083547d2fb13f7a5a2cc0ecad41c21e8c.tar.gz xine-lib-b5ff783083547d2fb13f7a5a2cc0ecad41c21e8c.tar.bz2 |
arrays of variable size are not understood by all compilers
(and I think they are not ANSI as well)
CVS patchset: 6209
CVS date: 2004/03/03 19:59:43
-rw-r--r-- | src/xine-utils/xineutils.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/xine-utils/xineutils.h b/src/xine-utils/xineutils.h index b5d51309b..f93854891 100644 --- a/src/xine-utils/xineutils.h +++ b/src/xine-utils/xineutils.h @@ -17,7 +17,7 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA * - * $Id: xineutils.h,v 1.79 2004/01/07 22:20:59 jstembridge Exp $ + * $Id: xineutils.h,v 1.80 2004/03/03 19:59:43 mroi Exp $ * */ #ifndef XINEUTILS_H @@ -719,10 +719,11 @@ static inline char *_private_strsep(char **stringp, const char *delim) { #else static inline void _private_setenv(const char *name, const char *val, int _xx) { int len = strlen(name) + strlen(val) + 2; - char env[len]; + char *env = (char *)malloc(len); sprintf(env, "%s%c%s", name, '=', val); putenv(env); + free(env); } #define xine_setenv _private_setenv #endif |