@@ -7,11 +7,10 @@ * This file is part of libobjfw. It may be distributed under the terms of the * Q Public License 1.0, which can be found in the file LICENSE included in * the packaging of this file. */ -#import #import #import "OFConstString.h" @implementation OFConstString + new:(const char*)str @@ -29,11 +28,11 @@ if ((self = [super init])) { if (str == NULL) { length = 0; string = NULL; } else { - length = strlen(string); + length = strlen(str); string = str; } } return self; }