diff options
author | David Robillard <d@drobilla.net> | 2011-01-21 00:25:01 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2011-01-21 00:25:01 +0000 |
commit | e5a61bb9834ca8de00016dbc6f32519ad9342962 (patch) | |
tree | 60b35c9b706325a5200c59525551247ffb855530 /src/reader.c | |
parent | be0d9a7989137f27c36bf9f592d054442a005ae6 (diff) | |
download | serd-e5a61bb9834ca8de00016dbc6f32519ad9342962.tar.gz serd-e5a61bb9834ca8de00016dbc6f32519ad9342962.tar.bz2 serd-e5a61bb9834ca8de00016dbc6f32519ad9342962.zip |
Fix language tag reading and writing.
git-svn-id: http://svn.drobilla.net/serd/trunk@18 490d8e77-9747-427b-9fa3-0b8f29cee8a0
Diffstat (limited to 'src/reader.c')
-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 070dc7a7..f3b2d99d 100644 --- a/src/reader.c +++ b/src/reader.c @@ -735,7 +735,7 @@ read_language(SerdReader parser) return 0; } Ref str = push_string(parser, "", 1); - push_byte(parser, str, start); + push_byte(parser, str, eat_byte(parser, start)); uint8_t c; while ((c = peek_byte(parser)) && in_range(c, 'a', 'z')) { push_byte(parser, str, eat_byte(parser, c)); |