summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/imports.c
diff options
context:
space:
mode:
authorKenneth Graunke <[email protected]>2010-02-18 23:50:53 -0800
committerKristian Høgsberg <[email protected]>2010-02-19 07:50:22 -0500
commit5fcaa78912bc78a5db410200c5987e2c57fad570 (patch)
tree37be9f2d07648120c6aad4d422dfca3f42d085d0 /src/mesa/main/imports.c
parent8ff7624653f0e119865cc6c283775832f1bc2903 (diff)
Remove _mesa_strcpy in favor of plain strcpy.
Diffstat (limited to 'src/mesa/main/imports.c')
-rw-r--r--src/mesa/main/imports.c11
1 files changed, 2 insertions, 9 deletions
diff --git a/src/mesa/main/imports.c b/src/mesa/main/imports.c
index 1a7535d89e9..19deef57679 100644
--- a/src/mesa/main/imports.c
+++ b/src/mesa/main/imports.c
@@ -841,13 +841,6 @@ _mesa_getenv( const char *var )
/** \name String */
/*@{*/
-/** Wrapper around strcpy() */
-char *
-_mesa_strcpy( char *dest, const char *src )
-{
- return strcpy(dest, src);
-}
-
/** Wrapper around strncpy() */
char *
_mesa_strncpy( char *dest, const char *src, size_t n )
@@ -877,7 +870,7 @@ _mesa_strncmp( const char *s1, const char *s2, size_t n )
}
/**
- * Implemented using _mesa_malloc() and _mesa_strcpy.
+ * Implemented using _mesa_malloc() and strcpy.
* Note that NULL is handled accordingly.
*/
char *
@@ -887,7 +880,7 @@ _mesa_strdup( const char *s )
size_t l = _mesa_strlen(s);
char *s2 = (char *) _mesa_malloc(l + 1);
if (s2)
- _mesa_strcpy(s2, s);
+ strcpy(s2, s);
return s2;
}
else {