glib r7683 - in branches/glib-2-18/gio: . inotify
- From: matthiasc svn gnome org
- To: svn-commits-list gnome org
- Subject: glib r7683 - in branches/glib-2-18/gio: . inotify
- Date: Fri, 28 Nov 2008 05:10:53 +0000 (UTC)
Author: matthiasc
Date: Fri Nov 28 05:10:53 2008
New Revision: 7683
URL: http://svn.gnome.org/viewvc/glib?rev=7683&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:
branches/glib-2-18/gio/ChangeLog
branches/glib-2-18/gio/inotify/inotify-sub.c
Modified: branches/glib-2-18/gio/inotify/inotify-sub.c
==============================================================================
--- branches/glib-2-18/gio/inotify/inotify-sub.c (original)
+++ branches/glib-2-18/gio/inotify/inotify-sub.c Fri Nov 28 05:10:53 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]