summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--cstring.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/cstring.h b/cstring.h
index b6529528..a31d5455 100644
--- a/cstring.h
+++ b/cstring.h
@@ -47,8 +47,8 @@ static size_t _cstring_null_rep[] = {0, 0, 0};
static inline CString _cstring_makeTemp(const char* str, size_t *rep) {
- CString cs = {(char *) (rep + 2)};
- strcpy(cs.str, str);
+ CString cs = {(char *) (rep + 2)};
+ strcpy(cs.str, str);
rep[0] = strlen(str);
rep[1] = 0; // no cap -> no destroy. OK
return cs;