Skip to content

Commit c56e54b

Browse files
Replace strlen with LENGTH
1 parent 69e395a commit c56e54b

File tree

1 file changed

+1
-0
lines changed
  • inst/include/Rcpp/sugar/functions/strings

1 file changed

+1
-0
lines changed

inst/include/Rcpp/sugar/functions/strings/trimws.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ inline const char* trim_both(const char* str, R_len_t sz, std::string* buff) {
7373
while (isws(*str)) {
7474
++str; --sz;
7575
}
76+
7677
const char* ptr = str + sz - 1;
7778

7879
for (; ptr > str && isws(*ptr); --sz, --ptr);

0 commit comments

Comments
 (0)