diff options
author | Maximilian Schwerin <post@mschwerin.de> | 2007-12-27 14:25:28 +0000 |
---|---|---|
committer | Maximilian Schwerin <post@mschwerin.de> | 2007-12-27 14:25:28 +0000 |
commit | a2d20c60cd88481989316a8cedf8bd7d1e9be94a (patch) | |
tree | b8f14c9eed3c68c6704eb80c6676db743ace14d7 /src/xine-utils/xmllexer.h | |
parent | 84e2f56c6cc81e9bed8ba03b29a8c69aa7d08d89 (diff) | |
download | xine-lib-a2d20c60cd88481989316a8cedf8bd7d1e9be94a.tar.gz xine-lib-a2d20c60cd88481989316a8cedf8bd7d1e9be94a.tar.bz2 |
xmlparser: fix token buffer being too small
What this patch does is replace the token buffer of static size in
xml_parser_get_node with a malloced buffer. If the lexer notices, that it
needs more size it just increases the size of this buffer by factor two and
tries again. This may not be very elegant, but it works.
node_name and property_name are dynamically-sized too.
Diffstat (limited to 'src/xine-utils/xmllexer.h')
-rw-r--r-- | src/xine-utils/xmllexer.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/xine-utils/xmllexer.h b/src/xine-utils/xmllexer.h index 1e646f9b5..bf9948d2d 100644 --- a/src/xine-utils/xmllexer.h +++ b/src/xine-utils/xmllexer.h @@ -51,7 +51,7 @@ /* public functions */ void lexer_init(const char * buf, int size) XINE_PROTECTED; -int lexer_get_token(char * tok, int tok_size) XINE_PROTECTED; +int lexer_get_token(char ** tok, int * tok_size) XINE_PROTECTED; char *lexer_decode_entities (const char *tok) XINE_PROTECTED; #endif |