/* cli.c */
/*
- This file is part of the AVR-Crypto-Lib.
+ This file is part of the ARM-Crypto-Lib.
Copyright (C) 2008 Daniel Otte (daniel.otte@rub.de)
This program is free software: you can redistribute it and/or modify
char c;
if(n==0)
return 2;
- while((c=cli_getc_cecho())!='\0' && c!='\r' && n--){
+ while((c=cli_getc_cecho())!='\0' && c!='\r' && n){
+ --n;
*s++=c;
}
*s='\0';