• R/O
  • SSH
  • HTTPS

naniya: Commit


Commit MetaInfo

Revision240 (tree)
Zeit2010-03-14 11:06:23
Autorchapuni

Log Message

BSD鯖0x80対策(のハズ)。

Ändern Zusammenfassung

Diff

--- trunk/naniya/mty/translate.c (revision 239)
+++ trunk/naniya/mty/translate.c (revision 240)
@@ -89,6 +89,12 @@
8989 }
9090 ptr[7] ^= 0x80; c0 = ptr[7] << 8;
9191 }
92+ else if ((ptr[n] & 0x7F) == 0x00
93+ && (ptr[n + 1] & 0x7F) != 0x00)
94+ {
95+ /* BSD鯖では失敗 */
96+ return 0;
97+ }
9298 else if (n == 6
9399 && (ptr[6] | 0x80) == 0x81
94100 && (ptr[7] & 0x7F) == 0x40)
Show on old repository browser