Optional dependencies for amavisd-new package shown with incorrect names
stevenbenner opened this issue · 1 comments
stevenbenner commented
stevenbenner commented
Fixed in commit 19840a9.
Unit tests added in commit cce43c7.
The code to truncate the dependency string was using the g_strrstr()
function to search for the location of ": "
. But this is a reverse string search, so it was returning the last occurrence of the match instead of the first.
I have changed the search to use the standard strstr()
function, which will return the location of first match.