mirror of
https://git.sr.ht/~sircmpwn/gmni
synced 2024-11-23 04:51:59 +01:00
ab66dd2be9
dirname has two main problems: 1. It could change in place the string that is passed to it. 2. It uses a static string for its return value, so one should copy it somewhere else as soon as possible to avoid subsequent calls to dirname to corrupt his data (see #48). We avoid 1. passing a copy of `path` to dirname and 2. copying it's return value into `dname`. |
||
---|---|---|
.. | ||
client.c | ||
escape.c | ||
gmni.c | ||
gmnlm.c | ||
parser.c | ||
tofu.c | ||
url.c | ||
util.c |