/[qemu]/qemu/block-vpc.c
ViewVC logotype

Diff of /qemu/block-vpc.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.1 by bellard, Wed Apr 27 20:17:58 2005 UTC revision 1.2 by bellard, Thu Apr 28 21:09:32 2005 UTC
# Line 81  typedef struct BDRVVPCState { Line 81  typedef struct BDRVVPCState {
81    
82  static int vpc_probe(const uint8_t *buf, int buf_size, const char *filename)  static int vpc_probe(const uint8_t *buf, int buf_size, const char *filename)
83  {  {
84      if (!strncmp(buf, "conectix", 8))      if (buf_size >= 8 && !strncmp(buf, "conectix", 8))
85          return 100;          return 100;
   
86      return 0;      return 0;
87  }  }
88    

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26