mirror of
https://github.com/strophe/libstrophe.git
synced 2026-07-18 20:06:21 +00:00
QNX version of printf() doesn't check whether a string is valid or not. Passing NULL pointer leads to a crash inside strlen(). Fix this with a wrapper _s() which returns "<NULL>" for instead of NULL pointer. Add checks before strcmp() to avoid crash in case of unexpected result of the jid functions.