Re: [Open64-devel] Patch for bug 621, using non-standard strdupa function
Brought to you by:
ributzka,
suneeljain
From: Sun C. <sun...@gm...> - 2010-10-08 22:19:22
|
I am fine with either fixes Sun 2010/10/9 "C. Bergström" <cbe...@pa...>: > Steve Ellcey wrote: >> Index: osprey/driver/file_names.c >> =================================================================== >> --- osprey/driver/file_names.c (revision 3367) >> +++ osprey/driver/file_names.c (working copy) >> @@ -156,7 +156,7 @@ get_object_file (char *src) >> !option_was_seen(O_c) && >> keep_flag != TRUE) { >> char *p; >> - src = strdupa(src); >> + src = strcpy(alloca(strlen(src)+1), src); >> > We have..... > src = strcpy(alloca(strlen(src) + sizeof '\0'), src); > > ------------------------------------------------------------------------------ > Beautiful is writing same markup. Internet Explorer 9 supports > standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3. > Spend less time writing and rewriting code and more time creating great > experiences on the web. Be a part of the beta today. > http://p.sf.net/sfu/beautyoftheweb > _______________________________________________ > Open64-devel mailing list > Ope...@li... > https://lists.sourceforge.net/lists/listinfo/open64-devel > |