diff options
author | Darren Salt <linux@youmustbejoking.demon.co.uk> | 2008-06-15 03:01:07 +0100 |
---|---|---|
committer | Darren Salt <linux@youmustbejoking.demon.co.uk> | 2008-06-15 03:01:07 +0100 |
commit | 15eb883def371a660ee8c9e8f47edb164d0a7feb (patch) | |
tree | 0059cc4b3af4200df7aa37c88a1550a2523a1371 /src/xine-utils/utils.c | |
parent | c98a025193cd6aa8c8c8cc1cf3404b5f7b9251e1 (diff) | |
parent | bc589d30c18a0517804c1306869e77f67d0da3ec (diff) | |
download | xine-lib-15eb883def371a660ee8c9e8f47edb164d0a7feb.tar.gz xine-lib-15eb883def371a660ee8c9e8f47edb164d0a7feb.tar.bz2 |
Merge from 1.1.
--HG--
rename : src/xine-utils/xineutils.h => include/xine/xineutils.h
rename : po/libxine1.pot => po/libxine2.pot
Diffstat (limited to 'src/xine-utils/utils.c')
-rw-r--r-- | src/xine-utils/utils.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/xine-utils/utils.c b/src/xine-utils/utils.c index 3d9939f91..59e5b8fb2 100644 --- a/src/xine-utils/utils.c +++ b/src/xine-utils/utils.c @@ -724,3 +724,11 @@ int xine_monotonic_clock(struct timeval *tv, struct timezone *tz) #endif } + +char *xine_strcat_realloc (char **dest, char *append) +{ + char *newstr = realloc (*dest, (*dest ? strlen (*dest) : 0) + strlen (append) + 1); + if (newstr) + strcat (*dest = newstr, append); + return newstr; +} |