Skip to content
This repository was archived by the owner on Aug 31, 2021. It is now read-only.

Commit ba7a991

Browse files
committed
libfoundation: Correct variable misnaming in MCStringCreateWithSysString().
Error introduced in commit 324bef8.
1 parent 324bef8 commit ba7a991

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

libfoundation/src/foundation-string.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5450,7 +5450,7 @@ MCStringCreateWithSysString(const char *p_sys_string,
54505450

54515451
/* Count the number of chars */
54525452
size_t t_byte_count;
5453-
for (t_byte_count = 0; p_sys_string[p_byte_count] != '\0'; ++t_byte_count);
5453+
for (t_byte_count = 0; p_sys_string[t_byte_count] != '\0'; ++t_byte_count);
54545454

54555455
return MCStringCreateWithBytes((const byte_t *) p_sys_string,
54565456
t_byte_count,

0 commit comments

Comments
 (0)