davidmoreno / onion

C library to create simple HTTP servers and Web Applications.
http://www.coralbits.com/libonion/
Other
2.01k stars 251 forks source link

Proposal for Issue 263 (basename() on Android) #264

Closed YggdrasiI closed 4 years ago

YggdrasiI commented 4 years ago

This commit adds the code of GLibC's xpg_basename.c (LGPL) and replaces basename() with __xpg_basename() in onions logging function. The basename() function of Androids Bionic Libc returns a pointer to a static array. This is problematic if return variables of two basename()-calls interleaves, i.e. in ofileserver with DEBUG=True

YggdrasiI commented 4 years ago

Rejected and closed because David Moreno already implemented a better solution.