Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
沈浪熊猫儿 committed Aug 29, 2023
1 parent 0522543 commit ed57329
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/tbox/libc/string/strcat.c
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,9 @@ tb_char_t* tb_strcat(tb_char_t* s1, tb_char_t const* s2)
tb_assert_and_check_return_val(s1 && s2, tb_null);

__tb_register__ tb_char_t* s = s1;
while (*s++); --s;
while (!(*s++ = *s2++));
while (*s++) {};
--s;
while (!(*s++ = *s2++)) {};
return s1;
}
#endif

0 comments on commit ed57329

Please sign in to comment.