Remove _mesa_strcpy in favor of plain strcpy.

This commit is contained in:
Kenneth Graunke
2010-02-18 23:50:53 -08:00
committed by Kristian Høgsberg
parent 8ff7624653
commit 5fcaa78912
5 changed files with 5 additions and 15 deletions
+2 -9
View File
@@ -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 {
-3
View File
@@ -611,9 +611,6 @@ _mesa_bsearch( const void *key, const void *base, size_t nmemb, size_t size,
extern char *
_mesa_getenv( const char *var );
extern char *
_mesa_strcpy( char *dest, const char *src );
extern char *
_mesa_strncpy( char *dest, const char *src, size_t n );
+1 -1
View File
@@ -215,7 +215,7 @@ _slang_strdup(const char *s)
size_t l = _mesa_strlen(s);
char *s2 = (char *) _slang_alloc(l + 1);
if (s2)
_mesa_strcpy(s2, s);
strcpy(s2, s);
return s2;
}
else {
+1 -1
View File
@@ -35,7 +35,7 @@
char *
slang_string_concat (char *dst, const char *src)
{
return _mesa_strcpy (dst + _mesa_strlen (dst), src);
return strcpy (dst + _mesa_strlen (dst), src);
}
+1 -1
View File
@@ -33,7 +33,7 @@
#define slang_string_compare(str1, str2) _mesa_strcmp (str1, str2)
#define slang_string_copy(dst, src) _mesa_strcpy (dst, src)
#define slang_string_copy(dst, src) strcpy (dst, src)
#define slang_string_length(str) _mesa_strlen (str)
char *slang_string_concat (char *, const char *);