diff options
author | David Robillard <d@drobilla.net> | 2011-04-23 19:08:03 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2011-04-23 19:08:03 +0000 |
commit | 82fdce9e8aa514710b349d3862148c7309d0ba36 (patch) | |
tree | 13e78235fd071da9139ffb6ac17f43fe282a8ffa /src | |
parent | ecc3adb41d4c116d4eb790b46eeabbbc72daae64 (diff) | |
download | serd-82fdce9e8aa514710b349d3862148c7309d0ba36.tar.gz serd-82fdce9e8aa514710b349d3862148c7309d0ba36.tar.bz2 serd-82fdce9e8aa514710b349d3862148c7309d0ba36.zip |
Fix parsing of language tags with several hyphens.
git-svn-id: http://svn.drobilla.net/serd/trunk@146 490d8e77-9747-427b-9fa3-0b8f29cee8a0
Diffstat (limited to 'src')
-rw-r--r-- | src/reader.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/reader.c b/src/reader.c index 114b53af..615f4d46 100644 --- a/src/reader.c +++ b/src/reader.c @@ -773,7 +773,7 @@ read_language(SerdReader reader) while ((c = peek_byte(reader)) && in_range(c, 'a', 'z')) { push_byte(reader, str, eat_byte(reader, c)); } - if (peek_byte(reader) == '-') { + while (peek_byte(reader) == '-') { push_byte(reader, str, eat_byte(reader, '-')); while ((c = peek_byte(reader)) && ( in_range(c, 'a', 'z') || in_range(c, '0', '9'))) { |