     buffer[offset++] = ':';
     offset += cbPrintInt(&buffer[offset], second(*t), 2);
   }
-  buffer[offset++] = 0;
+  buffer[offset] = 0;
   return offset;
 }
 

    }
    buf[offset++] = (char)(dir.name[i]);
  }
  buf[offset++] = 0;
  return offset;
}

int sprintFilename(char* buffer, time_t* t) {
  byte offset = sprintTime(buffer, t, true);
  buffer[offset++] = '.';
  buffer[offset++] = 'C';
  buffer[offset++] = 'S';
  buffer[offset++] = 'V';
  buffer[offset] = 0;
  return offset;
}

