(Fgenerate_new_buffer_name): GENTEMP is the value compare against IGNORE.
[bpt/emacs.git] / src / buffer.c
index c08135b..ebfaca8 100644 (file)
@@ -362,7 +362,7 @@ even if a buffer with that name exists.")
     {
       sprintf (number, "<%d>", ++count);
       gentemp = concat2 (name, build_string (number));
-      tem = Fstring_equal (name, ignore);
+      tem = Fstring_equal (gentemp, ignore);
       if (!NILP (tem))
        return gentemp;
       tem = Fget_buffer (gentemp);