summaryrefslogtreecommitdiff
path: root/cutils.c
diff options
context:
space:
mode:
authorbalrog <balrog@c046a42c-6fe2-441c-8c8c-71466251a162>2008-11-08 23:57:26 +0000
committerbalrog <balrog@c046a42c-6fe2-441c-8c8c-71466251a162>2008-11-08 23:57:26 +0000
commit793a10a2d435cb3e5d52bc06cf0a06191006148a (patch)
tree12d6849a83297f3d836879c56c535d0ca63d140b /cutils.c
parent4fc9af53d88c0a2a810704a06cb39a7182982e4e (diff)
Revert r5532, r5536 and a piece of r5531.
The use of strncat and strndup was correct, pstrcpy and pstrdup wasn't. I'll try to restore building on non-gnu OSes in a later commit. git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5651 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'cutils.c')
-rw-r--r--cutils.c12
1 files changed, 0 insertions, 12 deletions
diff --git a/cutils.c b/cutils.c
index 8fcb62efe..9ef2fa627 100644
--- a/cutils.c
+++ b/cutils.c
@@ -50,18 +50,6 @@ char *pstrcat(char *buf, int buf_size, const char *s)
return buf;
}
-/* strdup with a limit */
-char *pstrdup(const char *str, size_t buf_size)
-{
- size_t len;
- char *buf;
-
- len = MIN(buf_size, strlen(str));
- buf = qemu_malloc(len);
- pstrcpy(buf, len, str);
- return buf;
-}
-
int strstart(const char *str, const char *val, const char **ptr)
{
const char *p, *q;