Revert "mhl: mhl_shell_unescape_buf(): fixed memory array OOB."

This reverts commit 7a51b50d5c.
This commit is contained in:
Patrick Winnertz 2009-02-10 13:24:57 +01:00
parent 1f656eb6be
commit 5bbeba0b8b

View File

@ -113,8 +113,6 @@ static inline char* mhl_shell_unescape_buf(char* text)
case '`':
case '"':
case ';':
case '\0': /* end of line! malformed escape string */
goto out;
default:
(*writeptr) = c; writeptr++; break;
}
@ -126,7 +124,6 @@ static inline char* mhl_shell_unescape_buf(char* text)
}
readptr++;
}
out:
*writeptr = 0;
return text;