diff --git a/libreborn/src/util/cp437.cpp b/libreborn/src/util/cp437.cpp index 8dd0e81..bb9062f 100644 --- a/libreborn/src/util/cp437.cpp +++ b/libreborn/src/util/cp437.cpp @@ -16,7 +16,7 @@ static std::string to_utf8(const std::u32string &s) { // Minecraft-Flavored CP437 #define CP437_CHARACTERS 256 static const std::string cp437_characters_map[CP437_CHARACTERS] = { - "\0", "☺", "☻", "♥", "♦", "♣", "♠", "•", "◘", "○", "\n", "♂", "♀", "\r", "♫", "☼", + "\0", "☺", "☻", "♥", "♦", "♣", "♠", "•", "◘", "○", "\n", "♂", "♀", "♪", "♫", "☼", "►", "◄", "↕", "‼", "¶", "§", "▬", "↨", "↑", "↓", "→", "←", "∟", "↔", "▲", "▼", " ", "!", "\"", "#", "$", "%", "&", "'", "(", ")", "*", "+", ",", "-", ".", "/", "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", ":", ";", "<", "=", ">", "?", diff --git a/libreborn/src/util/string.c b/libreborn/src/util/string.c index bf08000..e9e713e 100644 --- a/libreborn/src/util/string.c +++ b/libreborn/src/util/string.c @@ -14,7 +14,7 @@ void sanitize_string(char **str, int max_length, unsigned int allow_newlines) { // Loop Through Message if (!allow_newlines) { for (int i = 0; i < length; i++) { - if ((*str)[i] == '\n' || (*str)[i] == '\r') { + if ((*str)[i] == '\n') { // Replace Newline (*str)[i] = ' '; }