diff --git a/src/inet_escape_functions.cpp b/src/inet_escape_functions.cpp index 0be7481..9954437 100644 --- a/src/inet_escape_functions.cpp +++ b/src/inet_escape_functions.cpp @@ -133,7 +133,7 @@ struct Matcher { auto input_data = input.GetData(); auto input_size = input.GetSize(); auto num_of_digits = input_size - i; // number of digits after i index - if (num_of_digits > 2 && input_data[i] == '&') { // the beggining of a match + if (num_of_digits > 2 && input_data[i] == '&') { // the beginning of a match if (input_data[i + 1] == '#') { if (input_data[i + 2] == 'x' || input_data[i + 2] == 'X') { if (num_of_digits == 3 || input_data[i + 3] == '&' || @@ -192,9 +192,9 @@ struct Matcher { } // special character references if (0x80 <= num && num <= 0x9f) { - auto invaid_charref = bind_data.special_invalid_charrefs.find(num); - if (invaid_charref != bind_data.special_invalid_charrefs.end()) { - auto ch = invaid_charref->second; + auto invalid_charref = bind_data.special_invalid_charrefs.find(num); + if (invalid_charref != bind_data.special_invalid_charrefs.end()) { + auto ch = invalid_charref->second; OP::Operation(ch, result); } else { // non printable control points if (num == 0x81) { @@ -209,7 +209,7 @@ struct Matcher { OP::Operation("\\x9d", result); } else { throw InternalException( - "Tried to decode contol point %d, but it was not handled", num); + "Tried to decode control point %d, but it was not handled", num); } } return;