summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Georgi <patrick@openbios.org>2016-03-12 12:18:49 +0100
committerStephen Warren <swarren@nvidia.com>2016-03-14 10:13:21 -0600
commitefe19b2eb9db7bb3ba913f0af7d5ececb173fe82 (patch)
treec1144984a00f1689140c73b03e5810b11f59bf6e
parenta64c3f12b1b048096d90c44db74d3d110cea6fff (diff)
downloadcbootimage-efe19b2eb9db7bb3ba913f0af7d5ececb173fe82.tar.gz
cbootimage: allow working with paths that contain '@'
Signed-off-by: Patrick Georgi <patrick@openbios.org> Signed-off-by: Stephen Warren <swarren@nvidia.com>
-rw-r--r--src/parse.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/parse.c b/src/parse.c
index 6f37dad..39d746c 100644
--- a/src/parse.c
+++ b/src/parse.c
@@ -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--;