X-Git-Url: https://git.infodrom.org/?p=infodrom%2Fdtaus;a=blobdiff_plain;f=dtaus.c;h=4a8851613dd894cc6d5ee6e369c7992e2511677d;hp=69177f841588c66ef67d14b04a4d68f288887087;hb=9b4d285a11a61180100f2931c5dc6e5ebcca9ca4;hpb=97e6d21c2a53ea3474aaa4b6c0a042706f027df2 diff --git a/dtaus.c b/dtaus.c index 69177f8..4a88516 100644 --- a/dtaus.c +++ b/dtaus.c @@ -67,7 +67,7 @@ dtaus_record recA[] = { {"Currency", 127, 1, OPT}, {"Euro", 127, 1, OPT}, {"DM", 127, 1, OPT}, - {NULL, 0, 0} + {NULL, 0, 0, 0} }; #define A_TRANS 0 @@ -105,7 +105,7 @@ dtaus_record recC[] = { #else {"Betrag-DM", 50, 11, IGN}, #endif - {NULL, 0, 0} + {NULL, 0, 0, 0} }; #define C_NAME 0 @@ -144,7 +144,7 @@ dtaus_record recE[] = { #else {"Summe-DM", 17, 13, IGN}, #endif - {NULL, 0, 0} + {NULL, 0, 0, 0} }; #define E_COUNT 0 @@ -1300,7 +1300,7 @@ int control2dtaus (char *ccontrol, char *cdtaus, char *cbeleg, char *ccheck, cha /* Convert commast to dots for later processing */ for (i=0; line[i]; i++) if (line[i] == ',') line[i] = '.'; - if ((cp = index (line, '.')) == NULL) { + if ((cp = strchr (line, '.')) == NULL) { if (!(valC[recindex] = (char *)malloc (strlen(line)+4))) return 0; sprintf (valC[recindex], "%s.00", line);