glib r7682 - in trunk/gio: . inotify
- From: matthiasc svn gnome org
- To: svn-commits-list gnome org
- Subject: glib r7682 - in trunk/gio: . inotify
- Date: Fri, 28 Nov 2008 05:09:22 +0000 (UTC)
Author: matthiasc
Date: Fri Nov 28 05:09:21 2008
New Revision: 7682
URL: http://svn.gnome.org/viewvc/glib?rev=7682&view=rev
Log:
2008-11-28 Matthias Clasen <mclasen redhat com>
Bug 561807 â inotify_sub.c :: dup_dirname() fails to remove trailing
'/'
* inotify/inotify-sub.c (dup_dirname): Actually strip the trailing
'/' away. Spotted by Dan Williams.
`
Modified:
trunk/gio/ChangeLog
trunk/gio/inotify/inotify-sub.c
Modified: trunk/gio/inotify/inotify-sub.c
==============================================================================
--- trunk/gio/inotify/inotify-sub.c (original)
+++ trunk/gio/inotify/inotify-sub.c Fri Nov 28 05:09:21 2008
@@ -38,8 +38,8 @@
gchar *d_dirname = g_strdup (dirname);
size_t len = strlen (d_dirname);
- if (d_dirname[len] == '/')
- d_dirname[len] = '\0';
+ if (d_dirname[len - 1] == '/')
+ d_dirname[len - 1] = '\0';
return d_dirname;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]