summaryrefslogtreecommitdiff
path: root/usr/src/cmd/sgs/libconv/common/demangle.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr/src/cmd/sgs/libconv/common/demangle.c')
-rw-r--r--usr/src/cmd/sgs/libconv/common/demangle.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/usr/src/cmd/sgs/libconv/common/demangle.c b/usr/src/cmd/sgs/libconv/common/demangle.c
index aa3589a51c..8b590d87e0 100644
--- a/usr/src/cmd/sgs/libconv/common/demangle.c
+++ b/usr/src/cmd/sgs/libconv/common/demangle.c
@@ -20,10 +20,8 @@
*/
/*
- * Copyright 2006 Sun Microsystems, Inc. All rights reserved.
- * Use is subject to license terms.
+ * Copyright (c) 2006, 2010, Oracle and/or its affiliates. All rights reserved.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
#include <stdio.h>
#include <demangle.h>
@@ -50,8 +48,7 @@
* buffer). One model is:
*
* if ((_name1 = demangle(name1)) != name1) {
- * char * __name1 = alloca(strlen(_name1) + 1);
- * (void) strcpy(__name1, _name1);
+ * char * __name1 = strdupa(_name1);
* name1 = (const char *)__name1;
* }
* name2 = demangle(name2);