summaryrefslogtreecommitdiff
path: root/block.c
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
parent57a943c41fd8ae23647f34b4b2ff7707561eebe8 (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 'block.c')
-rw-r--r--block.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/block.c b/block.c
index 3fe9317023..c7589b1c2a 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