Skip to content

Commit

Permalink
Revert "Fix"
Browse files Browse the repository at this point in the history
This reverts commit 617cf63.
  • Loading branch information
沈浪熊猫儿 committed Aug 29, 2023
1 parent 617cf63 commit 97491ad
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/tbox/libc/string/strcat.c
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,8 @@ 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 97491ad

Please sign in to comment.