asterisk/utils
Walter Doekes 8b6ecc449c Fix printf problems with high ascii characters after r413586 (1.8).
In r413586 (1.8) various casts were added to silence gcc 4.10 warnings.
Those fixes included things like:

    -out += sprintf(out, "%%%02X", (unsigned char) *ptr);
    +out += sprintf(out, "%%%02X", (unsigned) *ptr);

That works for low ascii characters, but for the high range that yields
e.g. FFFFFFC3 when C3 is expected.

This changeset:
- fixes those casts to use the 'hh' unsigned char modifier instead
- consistently uses %02x instead of %2.2x (or other non-standard usage)
- adds a few 'h' modifiers in various places
- fixes a 'replcaes' typo
- dev/urandon typo (in 13+ patch)

Review: https://reviewboard.asterisk.org/r/4263/

ASTERISK-24619 #close
Reported by: Stefan27 (on IRC)
........

Merged revisions 429673 from http://svn.asterisk.org/svn/asterisk/branches/11
........

Merged revisions 429674 from http://svn.asterisk.org/svn/asterisk/branches/12
........

Merged revisions 429675 from http://svn.asterisk.org/svn/asterisk/branches/13


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@429683 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2014-12-17 10:23:32 +00:00
..
db1-ast Replace Berkeley DB with SQLite 3 2011-07-06 20:58:12 +00:00
Makefile utils dir: Remove no longer needed traces of refcounter except in the clean make target. 2014-04-11 18:04:41 +00:00
ael_main.c Remove many deprecated modules 2014-07-04 13:26:37 +00:00
astcanary.c Merged revisions 328247 via svnmerge from 2011-07-14 20:28:54 +00:00
astdb2bdb.c Multiple revisions 369001-369002 2012-06-15 16:20:16 +00:00
astdb2sqlite3.c Multiple revisions 369001-369002 2012-06-15 16:20:16 +00:00
astman.1 remove extraneous svn:executable properties 2005-11-29 18:24:39 +00:00
astman.c Fix printf problems with high ascii characters after r413586 (1.8). 2014-12-17 10:23:32 +00:00
check_expr.c Fixed utils directory breakage from r398748, this time with extra hate. 2013-09-10 17:50:13 +00:00
clicompat.c Put clicompat-r2.patch back in 2013-10-25 17:32:17 +00:00
conf2ael.c Remove many deprecated modules 2014-07-04 13:26:37 +00:00
expr2.testinput Merged revisions 179807 via svnmerge from 2009-03-03 22:12:02 +00:00
extconf.c core: Don't allow free to mean ast_free (and malloc, etc..). 2014-09-26 14:41:38 +00:00
frame.c AST-2009-005 2009-08-10 19:20:57 +00:00
frame.h remove extraneous svn:executable properties 2005-11-29 18:24:39 +00:00
muted.c Doxygen Updates 2012-10-14 21:57:42 +00:00
smsq.c Fix printf problems with high ascii characters after r413586 (1.8). 2014-12-17 10:23:32 +00:00
stereorize.c Merged revisions 328247 via svnmerge from 2011-07-14 20:28:54 +00:00
streamplayer.c Merged revisions 328247 via svnmerge from 2011-07-14 20:28:54 +00:00
utils.xml main/astobj2: Make REF_DEBUG a menuselect item; improve REF_DEBUG output 2014-04-11 02:59:19 +00:00