summaryrefslogtreecommitdiff
path: root/src/util.c
diff options
context:
space:
mode:
authorIan C <ianc@noddybox.co.uk>2004-06-05 01:09:58 +0000
committerIan C <ianc@noddybox.co.uk>2004-06-05 01:09:58 +0000
commit4a6391ce910b5f71574e20b31f1e9429d756b96d (patch)
treee6866cc37946ca2ca69d9719cd5f8e30311fe2dc /src/util.c
parentc378e8f900d85d59a8a616bf0b8b14e426d898e1 (diff)
Fixed checking of trusted users. Tweaks to compile under FreeBSD 4.10. Added
debug output option.
Diffstat (limited to 'src/util.c')
-rw-r--r--src/util.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/util.c b/src/util.c
index 62dd79c..4db37f5 100644
--- a/src/util.c
+++ b/src/util.c
@@ -48,6 +48,19 @@ char *CopyStr(const char *p)
}
+char *CatStr(char *orig, const char *p)
+{
+ char *new;
+
+ new=Malloc(strlen(orig)+strlen(p)+1);
+ strcpy(new,orig);
+ strcat(new,p);
+ free(orig);
+
+ return new;
+}
+
+
void *F_Malloc(const char *file, int line, size_t len)
{
void *new;