From: Andrea Zagli Date: Sun, 20 Feb 2011 08:49:08 +0000 (+0100) Subject: Sostituita funziona strrchr con g_strrstr. X-Git-Tag: 0.0.3~4 X-Git-Url: https://saetta.ns0.it/gitweb?a=commitdiff_plain;h=701b520a86d83e811211d9be52fbd29de54c9e9d;p=solipa%2Flibsolipa Sostituita funziona strrchr con g_strrstr. --- diff --git a/src/solipa.c b/src/solipa.c index 86ac2e7..e6476a2 100644 --- a/src/solipa.c +++ b/src/solipa.c @@ -1,5 +1,5 @@ /* - * Copyright (C) 2010 Andrea Zagli + * Copyright (C) 2010-2011 Andrea Zagli * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public @@ -110,7 +110,7 @@ Solipa moddir = g_win32_get_package_installation_directory_of_module (NULL); - p = strrchr (moddir, G_DIR_SEPARATOR); + p = g_strrstr (moddir, g_strdup_printf ("%c", G_DIR_SEPARATOR)); if (p != NULL && (g_ascii_strcasecmp (p + 1, "src") == 0 || g_ascii_strcasecmp (p + 1, ".libs") == 0))