diff options
author | Hans Verkuil <hansverk@cisco.com> | 2017-08-31 13:41:15 +0200 |
---|---|---|
committer | Adam Jackson <ajax@redhat.com> | 2017-09-07 12:13:33 -0400 |
commit | 3f134e35f0953ee13202b7a23948f207393167e3 (patch) | |
tree | 96b8e4d4fb82d9a4cdbc89149ba113f8549d8774 | |
parent | 1ea2b1fef85cdaba11db519eda8c4e1d294022be (diff) |
edid-decode: allow for comma separated hex values
Useful when the hex dump comes from source code.
Signed-off-by: Hans Verkuil <hansverk@cisco.com>
-rw-r--r-- | edid-decode.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/edid-decode.c b/edid-decode.c index d38d2a3..ea44325 100644 --- a/edid-decode.c +++ b/edid-decode.c @@ -1976,7 +1976,7 @@ extract_edid(int fd) } /* Is the EDID provided in hex? */ - for (i = 0; i < 32 && (isspace(ret[i]) || tolower(ret[i]) == 'x' || isxdigit(ret[i])); i++); + for (i = 0; i < 32 && (isspace(ret[i]) || ret[i] == ',' || tolower(ret[i]) == 'x' || isxdigit(ret[i])); i++); if (i == 32) { out = malloc(size >> 1); if (out == NULL) { |