[libj6] Fix the infinite loop in simple_strlen

The simple_strlen function was incrementing n but not advancing the pointer.
This commit is contained in:
Justin C. Miller
2024-02-18 17:29:43 -08:00
parent f51f519c31
commit c27f8baa31

View File

@@ -12,7 +12,7 @@ client::client(j6_handle_t vfs_mb) :
{ {
} }
inline size_t simple_strlen(const char *s) { size_t n = 0; while (s && *s) n++; return n; } inline size_t simple_strlen(const char *s) { size_t n = 0; while (s && *s) s++, n++; return n; }
j6_status_t j6_status_t
client::load_file(char *path, j6_handle_t &vma) client::load_file(char *path, j6_handle_t &vma)