diff options
author | rob rob@31f1291d-b8d6-0310-a050-a5561fc1590b <rob rob@31f1291d-b8d6-0310-a050-a5561fc1590b@5417fbe8-f217-4b02-8779-1006273d7864> | 2004-10-13 18:10:23 +0000 |
---|---|---|
committer | rob rob@31f1291d-b8d6-0310-a050-a5561fc1590b <rob rob@31f1291d-b8d6-0310-a050-a5561fc1590b@5417fbe8-f217-4b02-8779-1006273d7864> | 2004-10-13 18:10:23 +0000 |
commit | 655889c154fdc3016038d6241a0c50978dd12fac (patch) | |
tree | 6108524a847ba8f61486768679eef968532ae692 /src/misc.c | |
parent | 65ed982a17ae7a3360b14cd459a35d581cf67a38 (diff) |
BUILD : 1.7.5 (394) BUGS : N/A NOTES : More code tidying, added make strict_modules etc, incase module coders what to use it :)
git-svn-id: svn://svn.anope.org/anope/trunk@394 31f1291d-b8d6-0310-a050-a5561fc1590b
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@259 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src/misc.c')
-rw-r--r-- | src/misc.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/misc.c b/src/misc.c index e3bcd899d..49b08e7cd 100644 --- a/src/misc.c +++ b/src/misc.c @@ -910,9 +910,13 @@ char *host_resolve(char *host) char *anopeStrDup(const char *src) { char *ret=NULL; if(src) { +#ifdef __STRICT_ANSI__ if( (ret = (char *)malloc(strlen(src)+1)) ) {; strcpy(ret,src); } +#else + ret = strdup(src); /* this way will prolly be faster, use it if we can */ +#endif } return ret; } |