diff options
author | balrog <balrog@c046a42c-6fe2-441c-8c8c-71466251a162> | 2008-11-08 23:57:26 +0000 |
---|---|---|
committer | balrog <balrog@c046a42c-6fe2-441c-8c8c-71466251a162> | 2008-11-08 23:57:26 +0000 |
commit | 793a10a2d435cb3e5d52bc06cf0a06191006148a (patch) | |
tree | 12d6849a83297f3d836879c56c535d0ca63d140b /cutils.c | |
parent | Use an option rom instead of boot sector for -kernel (diff) | |
download | qemu-kvm-793a10a2d435cb3e5d52bc06cf0a06191006148a.tar.gz qemu-kvm-793a10a2d435cb3e5d52bc06cf0a06191006148a.tar.bz2 qemu-kvm-793a10a2d435cb3e5d52bc06cf0a06191006148a.zip |
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.c | 12 |
1 files changed, 0 insertions, 12 deletions
@@ -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; |