mirror of
https://github.com/justinian/jsix.git
synced 2025-12-10 08:24:32 -08:00
[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:
@@ -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
|
||||
client::load_file(char *path, j6_handle_t &vma)
|
||||
|
||||
Reference in New Issue
Block a user