1
0
mirror of https://git.sr.ht/~sircmpwn/gmni synced 2024-11-23 04:51:59 +01:00
gmni/src
Giuseppe Lumia ab66dd2be9 Simplify posix_dirname logic
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`.
2020-11-17 09:30:56 -05:00
..
client.c Fix const comparison Werror 2020-10-29 19:18:42 -04:00
escape.c Initial request riggings 2020-09-20 13:06:34 -04:00
gmni.c fix typo in PERMANENT FAILURE response 2020-11-06 10:05:43 -05:00
gmnlm.c Initialize result if res != GEMINI_OK 2020-10-31 19:00:28 -04:00
parser.c Add static library for gmni 2020-10-24 13:41:07 -04:00
tofu.c Add static library for gmni 2020-10-24 13:41:07 -04:00
url.c Add static library for gmni 2020-10-24 13:41:07 -04:00
util.c Simplify posix_dirname logic 2020-11-17 09:30:56 -05:00