summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2010-04-07 14:52:15 +0000
committerCaolán McNamara <caolanm@redhat.com>2010-04-07 14:52:15 +0000
commite99c1c3297c038fcad23b0547030ed3b9119af1e (patch)
tree7cbe4b48cd08faa1f04f875a1cc001f9204b8060
parentde2862a0d9acf10eee1c7514a484687a4fd409dd (diff)
downloadhyphen-e99c1c3297c038fcad23b0547030ed3b9119af1e.tar.gz
hun#2005643 tidy string functions, correctly
-rw-r--r--csutil.c2
1 files changed, 1 insertions, 1 deletions
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);
}