summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorTyge Løvset <[email protected]>2020-03-09 01:00:43 +0100
committerGitHub <[email protected]>2020-03-09 01:00:43 +0100
commit9a0186979a3ad014352b5b129687df98f060133e (patch)
tree302906eb7e85bb54a551b8bd54ef5a820995bc7c
parent456b8fc754e4fb63ab25913910b4c42f06d43b75 (diff)
downloadSTC-modified-9a0186979a3ad014352b5b129687df98f060133e.tar.gz
STC-modified-9a0186979a3ad014352b5b129687df98f060133e.zip
tabs
-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;