mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-22 20:36:50 +03:00
Revert "mhl: mhl_shell_unescape_buf(): fixed memory array OOB."
This reverts commit 7a51b50d5c
.
This commit is contained in:
parent
1f656eb6be
commit
5bbeba0b8b
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user