cbootimage: allow working with paths that contain '@'

Signed-off-by: Patrick Georgi <patrick@openbios.org>
Signed-off-by: Stephen Warren <swarren@nvidia.com>
This commit is contained in:
Patrick Georgi
2016-03-12 12:18:49 +01:00
committed by Stephen Warren
parent a64c3f12b1
commit efe19b2eb9

View File

@@ -249,7 +249,7 @@ parse_filename(char *str, char *name, int chars_remaining)
* Check if the filename buffer is out of space, preserving one
* character to null terminate the string.
*/
while (isalnum(*str) || strchr("\\/~_-+:.", *str)) {
while (isalnum(*str) || strchr("\\/~_-+:.@", *str)) {
chars_remaining--;