View | Details | Raw Unified | Return to bug 8192
Collapse All | Expand All

(-)ddcprobe-1.0/int10/i10_vbios.c (-1 / +2 lines)
Lines 350-356 Link Here
350
            log_err("vbe: failed to read %d bytes at 0x%x, errno = %d\n", size, V_BIOS, errno);
350
            log_err("vbe: failed to read %d bytes at 0x%x, errno = %d\n", size, V_BIOS, errno);
351
          }
351
          }
352
          else {
352
          else {
353
            if(chksum((CARD8 *) V_BIOS)) ok = 1;
353
            chksum((CARD8 *) V_BIOS);
354
	    ok = 1;
354
          }
355
          }
355
        }
356
        }
356
      }
357
      }
(-)ddcprobe-1.0/vbe.c (-4 / +4 lines)
Lines 121-132 Link Here
121
     info->version = version;
121
     info->version = version;
122
     info->oem_version = oem_version;
122
     info->oem_version = oem_version;
123
     info->memory_size = memory_size;
123
     info->memory_size = memory_size;
124
     strncpy(info->oem_name, get_str(tmp, sizeof tmp, v + 0x06), sizeof(info->oem_name));
124
     info->oem_name = strdup(get_str(tmp, sizeof tmp, v + 0x06));
125
     if ((info->version >> 8) >= 2)
125
     if ((info->version >> 8) >= 2)
126
     {
126
     {
127
       strncpy(info->vendor_name, get_str(tmp, sizeof tmp, v + 0x16), sizeof(info->vendor_name));
127
       info->vendor_name = strdup(get_str(tmp, sizeof tmp, v + 0x16));
128
       strncpy(info->product_name, get_str(tmp, sizeof tmp, v + 0x1a), sizeof(info->product_name));
128
       info->product_name = strdup(get_str(tmp, sizeof tmp, v + 0x1a));
129
       strncpy(info->product_revision, get_str(tmp, sizeof tmp, v + 0x1e), sizeof(info->product_revision));
129
       info->product_revision = strdup(get_str(tmp, sizeof tmp, v + 0x1e));
130
     }
130
     }
131
     get_data(tmp, sizeof(tmp), segofs2addr(v + 0x0e));
131
     get_data(tmp, sizeof(tmp), segofs2addr(v + 0x0e));
132
     i = 0;
132
     i = 0;
(-)ddcprobe-1.0/vbe.h (-4 / +4 lines)
Lines 8-19 Link Here
8
struct vbe_info {
8
struct vbe_info {
9
        unsigned char signature[4];
9
        unsigned char signature[4];
10
        u_int16_t version;
10
        u_int16_t version;
11
        char oem_name[64];
11
        char *oem_name;
12
        /* u_int32_t capabilities; */
12
        /* u_int32_t capabilities; */
13
        u_int16_t mode_list[128];
13
        u_int16_t mode_list[128];
14
        char vendor_name[64];
14
        char *vendor_name;
15
        char product_name[64];
15
        char *product_name;
16
        char product_revision[32];
16
        char *product_revision;
17
        u_int32_t memory_size;
17
        u_int32_t memory_size;
18
        /* VESA 3.0+ */
18
        /* VESA 3.0+ */
19
	u_int16_t oem_version;
19
	u_int16_t oem_version;

Return to bug 8192