From e99c1c3297c038fcad23b0547030ed3b9119af1e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Caol=C3=A1n=20McNamara?= Date: Wed, 7 Apr 2010 14:52:15 +0000 Subject: [PATCH] hun#2005643 tidy string functions, correctly --- csutil.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/csutil.c b/csutil.c index af21f2c..90d4ae7 100644 --- a/csutil.c +++ b/csutil.c @@ -42,7 +42,7 @@ char * mystrdup(const char * s) { char * d = NULL; if (s) { - int sl = strlen(s+1); + int sl = strlen(s)+1; d = (char *) malloc(sl); if (d) memcpy(d,s,sl); }