diff options
author | 2015-04-12 08:05:15 +0200 | |
---|---|---|
committer | 2015-04-12 08:05:43 +0200 | |
commit | 7faba31b1b8dcd6caa5f1b651d2693106de08d35 (patch) | |
tree | c528d5479eee247ee5305df53a298a09b594fccc /src/lib/util/harddisk.c | |
parent | 15a464dac99052edc0645374a77ecef8d1a65b0d (diff) |
There is no implicit conversion to char* in std::string (nw)
Diffstat (limited to 'src/lib/util/harddisk.c')
-rw-r--r-- | src/lib/util/harddisk.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/util/harddisk.c b/src/lib/util/harddisk.c index 46d8f5bab9a..7fce13ca638 100644 --- a/src/lib/util/harddisk.c +++ b/src/lib/util/harddisk.c @@ -53,7 +53,7 @@ hard_disk_file *hard_disk_open(chd_file *chd) return NULL; /* parse the metadata */ - if (sscanf(metadata, HARD_DISK_METADATA_FORMAT, &cylinders, &heads, §ors, §orbytes) != 4) + if (sscanf(metadata.c_str(), HARD_DISK_METADATA_FORMAT, &cylinders, &heads, §ors, §orbytes) != 4) return NULL; /* allocate memory for the hard disk file */ |