[Planner Dev] Bug in planner-window.c:get_last_dir



In planner-window.c, function get_last_dir there is condition:

	
599		if (last_dir[strlen (last_dir)] != G_DIR_SEPARATOR) {
600			gchar *tmp;
601	
602			tmp = g_strconcat (last_dir, G_DIR_SEPARATOR_S, NULL);
603			g_free (last_dir);
604			last_dir = tmp;
605		}
606	

should there be:

if (last_dir[strlen(last_dir) - 1] != G_DIR_SEPARATOR) {

--

Jani Tiainen



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]