Skip to content

Commit 171b553

Browse files
committed
fix: use pointers
1 parent 31f26cf commit 171b553

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/_libs/src/parser/tokenizer.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1889,7 +1889,7 @@ static int copy_string_without_char(char output[PROCESSED_WORD_CAPACITY],
18891889
size_t bytes_written = 0;
18901890

18911891
while (left < end_ptr) {
1892-
right = memchr(left, char_to_remove, str_len - bytes_written);
1892+
right = memchr(left, char_to_remove, end_ptr - left);
18931893

18941894
// If it doesn't find the char to remove, just copy until EOS.
18951895
size_t chunk_size = right ? right - left : end_ptr - left;

0 commit comments

Comments
 (0)