diff options
author | bellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162> | 2005-04-28 21:09:32 +0000 |
---|---|---|
committer | bellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162> | 2005-04-28 21:09:32 +0000 |
commit | 712e78744e3a0332825a80298f38225b30dec88c (patch) | |
tree | a2b59da7629b13843649281332fd0cf8be1267c2 /block-vpc.c | |
parent | 7c35359cbf4eaa1d808a1ebb3647fe65fcc9dc60 (diff) |
probing fixes
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1425 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'block-vpc.c')
-rw-r--r-- | block-vpc.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/block-vpc.c b/block-vpc.c index 88ad575bf..e4c51bab2 100644 --- a/block-vpc.c +++ b/block-vpc.c @@ -81,9 +81,8 @@ typedef struct BDRVVPCState { static int vpc_probe(const uint8_t *buf, int buf_size, const char *filename) { - if (!strncmp(buf, "conectix", 8)) + if (buf_size >= 8 && !strncmp(buf, "conectix", 8)) return 100; - return 0; } |