diff options
author | rubidium42 <rubidium@openttd.org> | 2021-05-30 13:02:44 +0200 |
---|---|---|
committer | rubidium42 <rubidium42@users.noreply.github.com> | 2021-06-10 20:09:44 +0200 |
commit | e3717ae903cb770ae2ebc4abe45fa0cc77326409 (patch) | |
tree | 2a9b087c8fce31b51de3a7fe987be622323f963e /src/newgrf_gui.cpp | |
parent | df181bb641a75e9fae557c683b790cfba961ec5a (diff) | |
download | openttd-e3717ae903cb770ae2ebc4abe45fa0cc77326409.tar.xz |
Codechange: [ContentInfo] Use std::string instead of string buffers
Diffstat (limited to 'src/newgrf_gui.cpp')
-rw-r--r-- | src/newgrf_gui.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/newgrf_gui.cpp b/src/newgrf_gui.cpp index f017cbf7f..1b7ab44f6 100644 --- a/src/newgrf_gui.cpp +++ b/src/newgrf_gui.cpp @@ -1550,7 +1550,7 @@ void ShowMissingContentWindow(const GRFConfig *list) ContentInfo *ci = new ContentInfo(); ci->type = CONTENT_TYPE_NEWGRF; ci->state = ContentInfo::DOES_NOT_EXIST; - strecpy(ci->name, c->GetName(), lastof(ci->name)); + ci->name = c->GetName(); ci->unique_id = BSWAP32(c->ident.grfid); memcpy(ci->md5sum, HasBit(c->flags, GCF_COMPATIBLE) ? c->original_md5sum : c->ident.md5sum, sizeof(ci->md5sum)); cv.push_back(ci); |