wesnoth-cvs-commits
[Top][All Lists]
Advanced

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

[Wesnoth-cvs-commits] wesnoth/src/editor editor.cpp


From: Bram Ridder
Subject: [Wesnoth-cvs-commits] wesnoth/src/editor editor.cpp
Date: Sun, 31 Jul 2005 09:01:56 -0400

CVSROOT:        /cvsroot/wesnoth
Module name:    wesnoth
Branch:         
Changes by:     Bram Ridder <address@hidden>    05/07/31 13:01:56

Modified files:
        src/editor     : editor.cpp 

Log message:
        Fixed bug #13919, now checks for the final filename component.

CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/wesnoth/wesnoth/src/editor/editor.cpp.diff?tr1=1.110&tr2=1.111&r1=text&r2=text

Patches:
Index: wesnoth/src/editor/editor.cpp
diff -u wesnoth/src/editor/editor.cpp:1.110 wesnoth/src/editor/editor.cpp:1.111
--- wesnoth/src/editor/editor.cpp:1.110 Wed Jul 20 06:27:11 2005
+++ wesnoth/src/editor/editor.cpp       Sun Jul 31 13:01:56 2005
@@ -1134,7 +1134,7 @@
 {
        static const std::string allowed_characters = 
"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_/\\.";
        static const std::string prefix = "\\/";
-       std::size_t start_pos = filename.find_first_of(prefix);
+       std::size_t start_pos = filename.find_last_of(prefix);
        
        if(filename.find_first_not_of(allowed_characters, start_pos) != 
std::string::npos) {
                if(show_error) {




reply via email to

[Prev in Thread] Current Thread [Next in Thread]