Changeset 24096

Show
Ignore:
Timestamp:
26.05.2011 20:59:54 (8 years ago)
Author:
ak19
Message:

Fixed a server crashing bug in the oaiserver. Off by one error.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone2/runtime-src/src/oaiservr/oaitools.cpp

    r22739 r24096  
    3232void oaiclassifier::swapColonsAndPeriods(text_t &classifier) 
    3333{ 
    34   for (int i = 1; i <= classifier.size(); ++i) { 
    35     if (classifier[i] == '.') { 
     34  for (int i = 0; i < classifier.size(); ++i) { 
     35    if (classifier[i] == '.') { 
    3636      classifier[i] = ':'; 
    3737    }