• R/O
  • SSH
  • HTTPS

o2on: 提交


Commit MetaInfo

修訂116 (tree)
時間2008-08-05 22:13:24
作者k-uehara

Log Message

FIX: datファイルの先頭にLFがあると落ちる

Change Summary

差異

--- branches/BRANCH_0043/o2on/src.o2on/O2DatIO.cpp (revision 115)
+++ branches/BRANCH_0043/o2on/src.o2on/O2DatIO.cpp (revision 116)
@@ -278,6 +278,14 @@
278278 while (pos_lf < end && p[pos_lf] != '\n')
279279 pos_lf++;
280280
281+ if (pos_lf == 0) {
282+ if (Logger) {
283+ Logger->AddLog(O2LT_WARNING, MODULE, 0, 0,
284+ "タイトル取得失敗:行頭にLF (%s)", path.c_str());
285+ }
286+ return false;
287+ }
288+
281289 if (pos_lf == end || p[pos_lf] != '\n') {
282290 if (Logger) {
283291 Logger->AddLog(O2LT_WARNING, MODULE, 0, 0,
Show on old repository browser