Mercurial > mplayer.hg
comparison libmpdemux/realrtsp/xbuffer.c @ 12266:096072d234c6
Some sanity and bound checking
author | rtognimp |
---|---|
date | Sat, 24 Apr 2004 10:33:19 +0000 |
parents | 939ff11825de |
children |
comparison
equal
deleted
inserted
replaced
12265:c9e1fe032d10 | 12266:096072d234c6 |
---|---|
83 new_size+XBUFFER_HEADER_SIZE)) + XBUFFER_HEADER_SIZE; | 83 new_size+XBUFFER_HEADER_SIZE)) + XBUFFER_HEADER_SIZE; |
84 } | 84 } |
85 | 85 |
86 return buf; | 86 return buf; |
87 } | 87 } |
88 | |
89 | |
90 | |
91 void *xbuffer_strcat(void *buf, char *data) { | |
92 | |
93 if (!buf || !data) { | |
94 return NULL; | |
95 } | |
96 | |
97 buf = xbuffer_ensure_size(buf, strlen(buf)+strlen(data)+1); | |
98 | |
99 strcat(buf, data); | |
100 | |
101 return buf; | |
102 } |