diff 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
line wrap: on
line diff
--- a/libmpdemux/realrtsp/xbuffer.c	Fri Apr 23 22:30:18 2004 +0000
+++ b/libmpdemux/realrtsp/xbuffer.c	Sat Apr 24 10:33:19 2004 +0000
@@ -85,3 +85,18 @@
 
   return buf;
 }
+
+
+
+void *xbuffer_strcat(void *buf, char *data) {
+
+  if (!buf || !data) {
+    return NULL;
+  }
+
+  buf = xbuffer_ensure_size(buf, strlen(buf)+strlen(data)+1);
+
+  strcat(buf, data);
+
+  return buf;
+}