diff options
| author | Tyge Løvset <[email protected]> | 2020-03-09 01:00:43 +0100 |
|---|---|---|
| committer | GitHub <[email protected]> | 2020-03-09 01:00:43 +0100 |
| commit | 9a0186979a3ad014352b5b129687df98f060133e (patch) | |
| tree | 302906eb7e85bb54a551b8bd54ef5a820995bc7c | |
| parent | 456b8fc754e4fb63ab25913910b4c42f06d43b75 (diff) | |
| download | STC-modified-9a0186979a3ad014352b5b129687df98f060133e.tar.gz STC-modified-9a0186979a3ad014352b5b129687df98f060133e.zip | |
tabs
| -rw-r--r-- | cstring.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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;
|
