diff options
Diffstat (limited to 'pjsip/include/pjsip/print_util.h')
-rw-r--r-- | pjsip/include/pjsip/print_util.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/pjsip/include/pjsip/print_util.h b/pjsip/include/pjsip/print_util.h index 6d82aad7..d2ee3aea 100644 --- a/pjsip/include/pjsip/print_util.h +++ b/pjsip/include/pjsip/print_util.h @@ -20,6 +20,12 @@ #ifndef __PJSIP_PRINT_H__ #define __PJSIP_PRINT_H__ +#define copy_advance_char_check(buf,chr) \ + do { \ + if (1 >= (endbuf-buf)) return -1; \ + *buf++ = chr; \ + } while (0) + #define copy_advance_check(buf,str) \ do { \ if ((str).slen >= (endbuf-buf)) return -1; \ |