diff options
author | Benny Prijono <bennylp@teluu.com> | 2007-04-18 15:43:09 +0000 |
---|---|---|
committer | Benny Prijono <bennylp@teluu.com> | 2007-04-18 15:43:09 +0000 |
commit | e3f2eb5535e3774fffdfa99a03793c34e4b7e01c (patch) | |
tree | f448c8fba5b00b2fda95ddf2d1def318c6ae464c /pjlib-util/src | |
parent | 30d1576da208fda4d174975cc8e7df0569988349 (diff) |
Fixed ticket #233: Parse failure on big endian machines (thanks Vladimir Hozjan)
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@1204 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjlib-util/src')
-rw-r--r-- | pjlib-util/src/pjlib-util/scanner.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/pjlib-util/src/pjlib-util/scanner.c b/pjlib-util/src/pjlib-util/scanner.c index c7a9cf9b..eeea1320 100644 --- a/pjlib-util/src/pjlib-util/scanner.c +++ b/pjlib-util/src/pjlib-util/scanner.c @@ -342,7 +342,9 @@ PJ_DEF(void) pj_scan_get_quote( pj_scanner *scanner, int begin_quote, int end_quote, pj_str_t *out) { - pj_scan_get_quotes(scanner, (char*)&begin_quote, (char*)&end_quote, 1, out); + char beg = (char)begin_quote; + char end = (char)end_quote; + pj_scan_get_quotes(scanner, &beg, &end, 1, out); } PJ_DEF(void) pj_scan_get_quotes(pj_scanner *scanner, |