Commit 742febf0 authored by John Sullivan's avatar John Sullivan

reviewed by: Rebecca Schulman <rebecka@eazel.com>

	reviewed by: Darin Adler  <darin@eazel.com>

	Fixed bug 7615 (searching for "    " crashes)

	* src/nautilus-simple-search-bar.c:
	(nautilus_simple_search_criteria_to_search_uri):
	Change code that counts characters in search URI
	to use the same logic as the code that appends
	to string.
parent 20971046
2001-03-09 John Sullivan <sullivan@eazel.com>
reviewed by: Rebecca Schulman <rebecka@eazel.com>
reviewed by: Darin Adler <darin@eazel.com>
Fixed bug 7615 (searching for " " crashes)
* src/nautilus-simple-search-bar.c:
(nautilus_simple_search_criteria_to_search_uri):
Change code that counts characters in search URI
to use the same logic as the code that appends
to string.
2001-03-09 Dan Mueth <dan@eazel.com>
Updates to translated docs:
......
......@@ -228,7 +228,7 @@ nautilus_simple_search_criteria_to_search_uri (const char *search_criteria)
length = strlen ("[file:///]");
/* Count total length */
for (i = 0; words[i] != NULL; i++) {
length += strlen (words[i]) + strlen (NAUTILUS_SEARCH_URI_TEXT_NAME) + strlen (" contains & ");
length += strlen (NAUTILUS_SEARCH_URI_TEXT_NAME) + strlen (" contains ") + strlen (words[i]) + strlen (" & ");
}
fragment = g_new0 (char, length + 1);
/* FIXME bugzilla.eazel.com 2513: this should eventually be: sprintf (fragment, "[file%%3A%%2F%%2F%%2F]"); */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment