• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
Keine Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

oga's tools


Commit MetaInfo

Revisionea575fe40e25020d0d4fba179de0634b06fb6679 (tree)
Zeit2014-02-11 16:11:28
Autoroga <hyperoga@gmai...>
Commiteroga

Log Message

2014.02.10 V1.15 fix -r

Ändern Zusammenfassung

Diff

--- a/dp64.c
+++ b/dp64.c
@@ -11,6 +11,7 @@
1111 * 2007.02.26 V1.12 support -s option
1212 * 2007.03.03 V1.13 bigfile support
1313 * 2014.02.02 V1.14 support MSVC6
14+ * 2014.02.10 V1.15 fix -r
1415 */
1516
1617 #define DP_LARGE_FILE
@@ -61,6 +62,7 @@ typedef unsigned int uint64;
6162 #endif
6263
6364 #define READ_SIZE (1024)
65+#define START_POS 12 /* data start position */
6466
6567 int vf = 0; /* -v: verbose */
6668
@@ -83,11 +85,11 @@ void DpToFile(FILE *fp)
8385 }
8486 for (i=0; i<4; i++) {
8587 for (j=0; j<4; j++) {
86- if (isspace(buf[10+i*9+j*2])) {
88+ if (isspace(buf[START_POS+i*9+j*2])) {
8789 /* data end */
8890 return;
8991 }
90- strncpy(&wk[2],&buf[10+i*9+j*2],2);
92+ strncpy(&wk[2],&buf[START_POS+i*9+j*2],2);
9193 c = strtoul(wk,(char **)0,0);
9294 putchar(c);
9395 }