diff options
Diffstat (limited to 'src/mess/tools/imgtool/imghd.c')
-rw-r--r-- | src/mess/tools/imgtool/imghd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mess/tools/imgtool/imghd.c b/src/mess/tools/imgtool/imghd.c index e96ecc8f51c..f07334d68ef 100644 --- a/src/mess/tools/imgtool/imghd.c +++ b/src/mess/tools/imgtool/imghd.c @@ -52,7 +52,7 @@ imgtoolerr_t imghd_create(imgtool_stream *stream, UINT32 hunksize, UINT32 cylind chd_error rc; UINT64 logicalbytes; int hunknum, totalhunks; - astring metadata; + std::string metadata; chd_codec_type compression[4] = { CHD_CODEC_NONE }; /* sanity check args */ @@ -92,7 +92,7 @@ imgtoolerr_t imghd_create(imgtool_stream *stream, UINT32 hunksize, UINT32 cylind } /* write the metadata */ - metadata.format(HARD_DISK_METADATA_FORMAT, cylinders, heads, sectors, seclen); + strprintf(metadata,HARD_DISK_METADATA_FORMAT, cylinders, heads, sectors, seclen); err = (imgtoolerr_t)chd.write_metadata(HARD_DISK_METADATA_TAG, 0, metadata); if (rc != CHDERR_NONE) { |