From 2bd7318c1a40cd2f2ae55382be3433ea384e8eff Mon Sep 17 00:00:00 2001 From: blueswir1 Date: Sat, 25 Oct 2008 11:23:27 +0000 Subject: Replace uses of strndup (a GNU extension) with Qemu pstrdup git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5532 c046a42c-6fe2-441c-8c8c-71466251a162 --- qemu-common.h | 1 + 1 file changed, 1 insertion(+) (limited to 'qemu-common.h') diff --git a/qemu-common.h b/qemu-common.h index cc95fe62bb..aca2674622 100644 --- a/qemu-common.h +++ b/qemu-common.h @@ -82,6 +82,7 @@ int qemu_timedate_diff(struct tm *tm); /* cutils.c */ void pstrcpy(char *buf, int buf_size, const char *str); char *pstrcat(char *buf, int buf_size, const char *s); +char *pstrdup(const char *str, size_t buf_size); int strstart(const char *str, const char *val, const char **ptr); int stristart(const char *str, const char *val, const char **ptr); time_t mktimegm(struct tm *tm); -- cgit 1.4.1