summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBlue Swirl <blauwirbel@gmail.com>2009-07-01 18:24:44 +0000
committerBlue Swirl <blauwirbel@gmail.com>2009-07-01 18:24:44 +0000
commitd43277c534904dc31d14bfb0dc934f3cfbe2dab5 (patch)
tree272f8131c34141ffc369fbd40e369a02172584e6 /block.c
parentFix typo (diff)
downloadqemu-kvm-d43277c534904dc31d14bfb0dc934f3cfbe2dab5.tar.gz
qemu-kvm-d43277c534904dc31d14bfb0dc934f3cfbe2dab5.tar.bz2
qemu-kvm-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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/block.c b/block.c
index 3fe931702..c7589b1c2 100644
--- a/block.c
+++ b/block.c
@@ -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