Project

General

Profile

Revision 5bc3f3e7

View differences:

src/libs/aqbanking/backendsupport/msgengine.c
205 205
  else if (strcasecmp(type, "dword")==0) {
206 206
    int bigEndian;
207 207
    int isBCD;
208
    uint32_t value;
208
    uint32_t value=0;
209 209
    int c;
210 210
    char numbuf[32];
211 211

  
212 212
    bigEndian=atoi(GWEN_XMLNode_GetProperty(node, "bigEndian", "1"));
213 213
    isBCD=atoi(GWEN_XMLNode_GetProperty(node, "bcd", "0"));
214
    value=0;
214

  
215 215
    if (bigEndian) {
216 216
      c=GWEN_Buffer_ReadByte(msgbuf);
217 217
      if (c==-1)
src/libs/plugins/backends/aqhbci/banking/provider_online.c
950 950
			    "</html>"),
951 951
		       pwbuf,
952 952
		       0, 8, 0);
953

  
953
  if (rv<0) {
954
    DBG_INFO(AQHBCI_LOGDOMAIN, "here (%d)", rv);
955
    return rv;
956
  }
954 957
  job=AH_Job_ChangePin_new(pro, u, pwbuf);
955 958
  if (!job) {
956 959
    DBG_ERROR(AQHBCI_LOGDOMAIN, "Job not supported, should not happen");
src/libs/plugins/backends/aqhbci/dialogs/dlg_editaccount.c
403 403
    GWEN_Buffer_AppendString(tbuf, s);
404 404
    GWEN_Text_CondenseBuffer(tbuf);
405 405
    removeAllSpaces((uint8_t*)GWEN_Buffer_GetStart(tbuf));
406
    s=GWEN_Buffer_GetStart(tbuf);
407 406
    if (a)
408 407
      AB_Account_SetAccountNumber(a, GWEN_Buffer_GetStart(tbuf));
409 408
    GWEN_Buffer_free(tbuf);
src/libs/plugins/backends/aqpaypal/dlg_edituser.c
595 595
    GWEN_Text_UnescapeToBufferTolerant(GWEN_Buffer_GetStart(xbuf), sbuf1);
596 596
    if (t) {
597 597
      GWEN_Text_UnescapeToBufferTolerant(t, sbuf2);
598
      t=GWEN_Buffer_GetStart(sbuf2);
599 598
      if (t2) {
600 599
	GWEN_Text_UnescapeToBufferTolerant(t2, sbuf3);
601 600
      }
src/libs/plugins/imexporters/q43/q43.c
276 276
	/* get amount */
277 277
	strncpy(amount, p+28, 14);
278 278
	amount[14]=0;
279
	strncat(amount, "/100:", sizeof(amount)-1);
279
	strncat(amount, "/100:", sizeof(amount)-strlen(amount)-1);
280 280
        if (currency)
281
	  strncat(amount, currency, sizeof(amount)-1);
281
	  strncat(amount, currency, sizeof(amount)-strlen(amount)-1);
282 282
	amount[sizeof(amount)-1]=0;
283 283
	v=AB_Value_fromString(amount);
284 284
	if (v==NULL) {
src/libs/plugins/parsers/swift/swift.c
247 247
	if (*t==0x0a)
248 248
	  t++;
249 249
	if (*t && isdigit(*t)) {
250
	  nextId+=*(t++)-'0';
250
	  /*nextId+=*(t++)-'0';*/
251 251
	  /* TODO: check nextId */
252 252
	  /* s is the beginning of a new subtag, so the end has been found */
253 253
	  break;
src/libs/plugins/parsers/swift/swift535.c
241 241
      GWEN_Memory_dealloc(s);
242 242
      return 0;
243 243
    }
244
    p+=strlen(s);
244
    /*p+=strlen(s); */
245 245
    AHB_SWIFT__SetCharValue535(data, flags, "unitPrice", s);
246 246

  
247 247
    GWEN_Memory_dealloc(s);
src/libs/plugins/parsers/swift/swift940.c
604 604
	  if (blz) {
605 605
	    *blz=0;
606 606
            blz++;
607
	  }
608
	  p3=blz;
609
	  while(*p3 && isdigit(*p3))
610
	    p3++;
611
	  *p3=0;
612 607

  
613
	  AHB_SWIFT__SetCharValue(data, flags, "remoteBankCode", blz);
614
	  AHB_SWIFT__SetCharValue(data, flags, "remoteAccountNumber", kto);
608
	    p3=blz;
609
	    while(*p3 && isdigit(*p3))
610
	      p3++;
611
	    *p3=0;
612

  
613
	    AHB_SWIFT__SetCharValue(data, flags, "remoteBankCode", blz);
614
	    AHB_SWIFT__SetCharValue(data, flags, "remoteAccountNumber", kto);
615
	  }
615 616
	}
616 617
	else {
617 618
	  AHB_SWIFT__SetCharValue(data, flags, "purpose", p1);
......
1069 1070
  }
1070 1071
  AHB_SWIFT__SetCharValue(data, flags, "value", s);
1071 1072
  GWEN_Memory_dealloc(s);
1072
  bleft-=p2-p;
1073
  p=p2;
1073
  /*bleft-=p2-p;*/
1074
  /*p=p2;*/
1074 1075

  
1075 1076
  return 0;
1076 1077
}
src/tools/aqbanking-cli/util.c
488 488
      backendName=GWEN_DB_GetCharValue(db, "backendName", 0, "*");
489 489
      country=GWEN_DB_GetCharValue(db, "country", 0, "*");
490 490
      bankId=GWEN_DB_GetCharValue(db, "bankId", 0, "*");
491
      country=GWEN_DB_GetCharValue(db, "country", 0, "*");
492 491
      accountId=GWEN_DB_GetCharValue(db, "accountId", 0, "*");
493 492
      subAccountId=GWEN_DB_GetCharValue(db, "subAccountId", 0, "*");
494 493
      iban=GWEN_DB_GetCharValue(db, "iban", 0, "*");

Also available in: Unified diff