Skip to content

Commit

Permalink
defin: replacing sprintf with fmt::format
Browse files Browse the repository at this point in the history
Signed-off-by: Felipe Garay <fgaray@google.com>
  • Loading branch information
fgaray committed Jul 26, 2024
1 parent 0ee1c77 commit fefd6cd
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions src/odb/src/defin/definReader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1562,13 +1562,7 @@ int definReader::unitsCallback(defrCallbackType_e, double d, defiUserData data)

// Truncation error
if (d > reader->_tech->getDbUnitsPerMicron()) {
char buf[256];
sprintf(buf,
"The DEF UNITS DISTANCE MICRONS convert factor (%d) is "
"greater than the database units per micron (%d) value.",
(int) d,
reader->_tech->getDbUnitsPerMicron());
UNSUPPORTED(buf);
UNSUPPORTED(fmt::format("The DEF UNITS DISTANCE MICRONS convert factor ({}) is greater than the database units per micron ({}) value.", d, reader->_tech->getDbUnitsPerMicron()));
}

reader->units(d);
Expand Down

0 comments on commit fefd6cd

Please sign in to comment.