mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-20 18:22:07 +00:00
Do not limit strings to 255 characters
This commit is contained in:
@@ -9,7 +9,6 @@
|
||||
#include <string.h>
|
||||
|
||||
#include "asm/fixpoint.hpp"
|
||||
#include "asm/lexer.hpp" // MAXSTRLEN
|
||||
#include "asm/warning.hpp"
|
||||
|
||||
void FormatSpec::useCharacter(int c) {
|
||||
@@ -133,11 +132,6 @@ void FormatSpec::appendString(std::string &str, std::string const &value) const
|
||||
str.append(padLen, ' ');
|
||||
str.append(value);
|
||||
}
|
||||
|
||||
if (str.length() > MAXSTRLEN) {
|
||||
error("Formatted string value too long\n");
|
||||
str.resize(MAXSTRLEN);
|
||||
}
|
||||
}
|
||||
|
||||
void FormatSpec::appendNumber(std::string &str, uint32_t value) const {
|
||||
@@ -245,9 +239,4 @@ void FormatSpec::appendNumber(std::string &str, uint32_t value) const {
|
||||
}
|
||||
str.append(valueBuf);
|
||||
}
|
||||
|
||||
if (str.length() > MAXSTRLEN) {
|
||||
error("Formatted numeric value too long\n");
|
||||
str.resize(MAXSTRLEN);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user