greenstone.org greenstone wiki greenstone trac planet greenstone

Changeset 17988

Show
Ignore:
Timestamp:
2008-12-01 12:43:47 (1 month ago)
Author:
max
Message:

String manipulation fix. Off by one error.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • gsdl/trunk/common-src/src/lib/gdbmclass.cpp

    r17757 r17988  
    8181      text_t::const_iterator begin = filename.begin(); 
    8282      text_t::const_iterator end= filename.end(); 
     83           
     84          if (begin != end) 
     85                { 
     86                end = end - 1; 
     87                } 
     88                 
    8389      text_t::const_iterator here = end; 
    8490