diff options
| author | Caolán McNamara <caolanm@redhat.com> | 2010-04-07 14:52:15 +0000 |
|---|---|---|
| committer | Caolán McNamara <caolanm@redhat.com> | 2010-04-07 14:52:15 +0000 |
| commit | e99c1c3297c038fcad23b0547030ed3b9119af1e (patch) | |
| tree | 7cbe4b48cd08faa1f04f875a1cc001f9204b8060 | |
| parent | de2862a0d9acf10eee1c7514a484687a4fd409dd (diff) | |
| download | hyphen-e99c1c3297c038fcad23b0547030ed3b9119af1e.tar.gz | |
hun#2005643 tidy string functions, correctly
| -rw-r--r-- | csutil.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); } |
