NetworkManager r4324 - in trunk: . gfilemonitor



Author: dcbw
Date: Fri Nov 21 14:34:22 2008
New Revision: 4324
URL: http://svn.gnome.org/viewvc/NetworkManager?rev=4324&view=rev

Log:
2008-11-21  Dan Williams  <dcbw redhat com>

	* gfilemonitor/inotify-sub.c
		- (dup_dirname): actually remove trailing '/' (bgo #561807)



Modified:
   trunk/ChangeLog
   trunk/gfilemonitor/inotify-sub.c

Modified: trunk/gfilemonitor/inotify-sub.c
==============================================================================
--- trunk/gfilemonitor/inotify-sub.c	(original)
+++ trunk/gfilemonitor/inotify-sub.c	Fri Nov 21 14:34:22 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]