• R/O
  • SSH
  • HTTPS

p-svm: Commit


Commit MetaInfo

Revision33 (tree)
Zeit2014-02-05 15:40:43
Autorkanai7310

Log Message

(empty log message)

Ändern Zusammenfassung

Diff

--- src/IO.c (revision 32)
+++ src/IO.c (revision 33)
@@ -78,7 +78,7 @@
7878 }
7979
8080 fgets(line,LMAX,fp);
81- p=strtok(NULL,"/");
81+ p=strtok(line,"/");
8282 i=0;
8383 while ((p=strtok(NULL,"/")) != NULL) {
8484 if (strchr(p,':') != NULL) fmt[i]=1;
@@ -117,7 +117,6 @@
117117 for (i=0;i<*NS;i++) {
118118 if (fmt[i] == 1) MM[i]=MM[i]+1;
119119 }
120-
121120 fclose(fp);
122121 free(line);
123122 }
@@ -159,6 +158,11 @@
159158 x1=tx+MM[0];
160159 }
161160 else if (fmt[0] == 1) {
161+ for (i=0;i<MM[0];i++) {
162+ *pt1=-1; pt1++;
163+ }
164+ pt1=tpt;
165+
162166 p=strtok(rr[0]," ");
163167 q=strchr(p,':'); *q='\0'; q++;
164168 *pt1=atoi(p); pt1++;
@@ -186,6 +190,11 @@
186190 x2=tx+MM[1];
187191 }
188192 else if (fmt[1] == 1) {
193+ for (i=0;i<MM[1];i++) {
194+ *pt2=-1; pt2++;
195+ }
196+ pt2=tpt;
197+
189198 p=strtok(rr[1]," ");
190199 q=strchr(p,':'); *q='\0'; q++;
191200 *pt2=atoi(p); pt2++;
@@ -213,6 +222,11 @@
213222 x3=tx+MM[2];
214223 }
215224 else if (fmt[2] == 1) {
225+ for (i=0;i<MM[2];i++) {
226+ *pt3=-1; pt3++;
227+ }
228+ pt3=tpt;
229+
216230 p=strtok(rr[2]," ");
217231 q=strchr(p,':'); *q='\0'; q++;
218232 *pt3=atoi(p); pt3++;
Show on old repository browser