diff options
author | Blue Swirl <blauwirbel@gmail.com> | 2009-07-01 18:24:44 +0000 |
---|---|---|
committer | Blue Swirl <blauwirbel@gmail.com> | 2009-07-01 18:24:44 +0000 |
commit | d43277c534904dc31d14bfb0dc934f3cfbe2dab5 (patch) | |
tree | 272f8131c34141ffc369fbd40e369a02172584e6 /qemu-common.h | |
parent | 57a943c41fd8ae23647f34b4b2ff7707561eebe8 (diff) |
Fix missing strnlen problems
Fix missing strnlen (a GNU extension) problems by using qemu_strnlen
used for user emulators also for system emulators.
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'qemu-common.h')
-rw-r--r-- | qemu-common.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/qemu-common.h b/qemu-common.h index 5b8ac77f09..a5d8fffb75 100644 --- a/qemu-common.h +++ b/qemu-common.h @@ -109,6 +109,7 @@ void pstrcpy(char *buf, int buf_size, const char *str); char *pstrcat(char *buf, int buf_size, const char *s); int strstart(const char *str, const char *val, const char **ptr); int stristart(const char *str, const char *val, const char **ptr); +int qemu_strnlen(const char *s, int max_len); time_t mktimegm(struct tm *tm); int qemu_fls(int i); |