diff src/input.cc @ 3565:4290f11c8d3b

[project @ 2000-02-03 08:32:41 by jwe]
author jwe
date Thu, 03 Feb 2000 08:32:44 +0000
parents e8fbc8c3d6d9
children 4b1a93f83264
line wrap: on
line diff
--- a/src/input.cc	Thu Feb 03 06:28:19 2000 +0000
+++ b/src/input.cc	Thu Feb 03 08:32:44 2000 +0000
@@ -425,7 +425,7 @@
       matches = 0;
 
       for (int i = 0; i < name_list_len; i++)
-	if (! name_list[i].compare (hint, 0, hint_len))
+	if (hint == name_list[i].substr (0, hint_len))
 	  matches++;
     }
 
@@ -437,7 +437,7 @@
 
 	  list_index++;
 
-	  if (! name.compare (hint, 0, hint_len))
+	  if (hint == name.substr (0, hint_len))
 	    {
 	      if (! prefix.empty ())
 		retval = prefix + "." + name;