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 | e1efaf62a3b67d4ee87fe42f28ead7f3f72bfc9f (patch) | |
tree | 272f8131c34141ffc369fbd40e369a02172584e6 /qemu-common.h | |
parent | 82af557958749ba2ebf5aab8884dc2499ea9468f (diff) | |
download | qemu-e1efaf62a3b67d4ee87fe42f28ead7f3f72bfc9f.tar.gz qemu-e1efaf62a3b67d4ee87fe42f28ead7f3f72bfc9f.tar.bz2 qemu-e1efaf62a3b67d4ee87fe42f28ead7f3f72bfc9f.zip |
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); |