/*
dtaus.c - Belegloser Datenträgeraustausch mit einer Bank
- Copyright (c) 1996,8,2001,2,3 Martin Schulze <joey@infodrom.org>
+ Copyright (c) 1996,8,2001-4 Martin Schulze <joey@infodrom.org>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
{
static char res[20];
char *cp;
+ char *xp; /* only to avoid a GCC warning */
strncpy(res, s, sizeof(res)-1);
res[sizeof(res)-1] = 0;
if (*cp == '.' || *cp == ',') {
if (*(cp+1)) {
/* 1st decimal place */
- if (isdigit(*(cp+1)))
- *(cp++) = *(cp+1);
+ xp = cp+1;
+ if (*xp && isdigit(*xp))
+ *(cp++) = *xp;
else
*(cp++) = '0';
/* 2nd decimal place */
- if (*(cp+1) && isdigit(*(cp+1)))
- *(cp++) = *(cp+1);
+ xp = cp+1;
+ if (*xp && isdigit(*xp))
+ *(cp++) = *xp;
else
*(cp++) = '0';
} else {
fprintf(fbeleg, "\n VOL ........................:\n");
fprintf(fbeleg, "\n Erstellungsdatum ...........: %s\n", get_date());
if (valA[A_TODO]) {
- fprintf(fbeleg, "\n Ausfuehrugsdatum ...........: %s\n", valA[A_TODO]);
+ fprintf(fbeleg, "\n Ausfuehrungsdatum ..........: %s\n", valA[A_TODO]);
}
if (use_euro)
fprintf(fbeleg, "\n Waehrung ...................: Euro\n");