Author: sje
Date: 2010-10-11 16:08:13 -0400 (Mon, 11 Oct 2010)
New Revision: 3369
Modified:
trunk/osprey/driver/file_names.c
Log:
Replace 'strdupa(src)' with 'strcpy(alloca(strlen(src)+1), src)' since
strdupa is not a standard function.
Approved by Sun Chan.
Modified: trunk/osprey/driver/file_names.c
===================================================================
--- trunk/osprey/driver/file_names.c 2010-10-06 22:47:58 UTC (rev 3368)
+++ trunk/osprey/driver/file_names.c 2010-10-11 20:08:13 UTC (rev 3369)
@@ -156,7 +156,7 @@
!option_was_seen(O_c) &&
keep_flag != TRUE) {
char *p;
- src = strdupa(src);
+ src = strcpy(alloca(strlen(src)+1), src);
for (p = src; *p != '\0'; p++) {
if (*p == '/')
*p = '%';
------------------------------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/open64-devel