From: Lars Hjemli Date: Tue, 26 Jun 2007 16:04:31 +0000 (+0200) Subject: Add trim_end() and use it to remove trailing slashes from repo paths X-Git-Url: https://gitweb.ps.run/ps-cgit/commitdiff_plain/382805ee83b6e6f165159312a9fe20e3971897b6?hp=382805ee83b6e6f165159312a9fe20e3971897b6 Add trim_end() and use it to remove trailing slashes from repo paths The new function removes all trailing instances of an arbitrary character from a copy of the supplied char array. This is then used to remove any trailing slashes from cgit_query_path. Signed-off-by: Lars Hjemli ---