Skip to content
Snippets Groups Projects
Unverified Commit 63ee4de1 authored by Justin Raymond's avatar Justin Raymond Committed by GitHub
Browse files

Update lib.rs

parent 23a40920
No related branches found
No related tags found
No related merge requests found
......@@ -259,7 +259,7 @@ pub unsafe extern "C" fn strrchr(s: *const c_char, c: c_int) -> *mut c_char {
let len = strlen(s) as isize;
let c = c as i8;
let mut i = len - 1;
while *s.offset(i) != 0 && i >= 0 {
while i >= 0 {
if *s.offset(i) == c {
return s.offset(i) as *mut c_char;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment