mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-20 10:12:06 +00:00
Use QUOTEDSTRLEN macro instead of sizeof or strlen
This commit is contained in:
@@ -632,9 +632,9 @@ static std::tuple<DefaultInitVec<size_t>, std::vector<Palette>>
|
||||
char *ptr = buf;
|
||||
for (uint16_t cgbColor : list) {
|
||||
sprintf(ptr, ", $%04x", cgbColor);
|
||||
ptr += 7;
|
||||
ptr += QUOTEDSTRLEN(", $XXXX");
|
||||
}
|
||||
return &buf[2];
|
||||
return &buf[QUOTEDSTRLEN(", ")];
|
||||
};
|
||||
|
||||
// Iterate through proto-palettes, and try mapping them to the specified palettes
|
||||
|
||||
Reference in New Issue
Block a user