summaryrefslogtreecommitdiff
path: root/lib/libdtrace/common/dt_decl.c
diff options
context:
space:
mode:
authorMartin Matuska <mm@FreeBSD.org>2012-07-18 07:48:04 +0000
committerMartin Matuska <mm@FreeBSD.org>2012-07-18 07:48:04 +0000
commit93a00b0821525e25814cd720fafd04d600811c28 (patch)
tree581776874858fb2fad55f129938a1871f8758eb5 /lib/libdtrace/common/dt_decl.c
parente0ea83ebb1a4b194c927cb114766e8781676380b (diff)
Notes
Diffstat (limited to 'lib/libdtrace/common/dt_decl.c')
-rw-r--r--lib/libdtrace/common/dt_decl.c14
1 files changed, 5 insertions, 9 deletions
diff --git a/lib/libdtrace/common/dt_decl.c b/lib/libdtrace/common/dt_decl.c
index bb779840406c..d2a0b29ca8e7 100644
--- a/lib/libdtrace/common/dt_decl.c
+++ b/lib/libdtrace/common/dt_decl.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,13 +18,11 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2005 Sun Microsystems, Inc. All rights reserved.
- * Use is subject to license terms.
+ * Copyright (c) 2003, 2010, Oracle and/or its affiliates. All rights reserved.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
#include <strings.h>
#include <stdlib.h>
#include <limits.h>
@@ -703,8 +700,7 @@ dt_decl_enumerator(char *s, dt_node_t *dnp)
char *name;
int value;
- name = alloca(strlen(s) + 1);
- (void) strcpy(name, s);
+ name = strdupa(s);
free(s);
if (dsp == NULL)