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 /block.c | |
parent | 57a943c41fd8ae23647f34b4b2ff7707561eebe8 (diff) | |
download | qemu-d43277c534904dc31d14bfb0dc934f3cfbe2dab5.tar.gz qemu-d43277c534904dc31d14bfb0dc934f3cfbe2dab5.tar.bz2 qemu-d43277c534904dc31d14bfb0dc934f3cfbe2dab5.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 'block.c')
-rw-r--r-- | block.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -225,7 +225,7 @@ static BlockDriver *find_protocol(const char *filename) { BlockDriver *drv1; char protocol[128]; - int len = strnlen(filename, 127)+1; + int len = qemu_strnlen(filename, 127) + 1; const char *p; #ifdef _WIN32 |