Changeset 805 for soft/giet_vm/applications/rosenfeld/nrc2/src/nrset1.c
- Timestamp:
- Mar 15, 2016, 6:35:28 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
soft/giet_vm/applications/rosenfeld/nrc2/src/nrset1.c
r772 r805 497 497 /* --------------------------------------------------------------------- */ 498 498 { 499 int i; 500 char c[1]; 501 for(i=nl; i<=nh; i++) { 502 503 *c = *str++; 504 if(isdigit(*c)) 499 // @QM 500 int i; 501 char c[2]; 502 c[1] = '\0'; 503 for (i = nl; i <= nh; i++) { 504 c[0] = *str++; 505 if (isdigit(c[0])) { 505 506 v[i] = (uint8) atoi(c); 506 else 507 } 508 else { 507 509 v[i] = (uint8) 0; 510 } 508 511 } 509 512 }
Note: See TracChangeset
for help on using the changeset viewer.