Fix pointer bug. Shouldn't 've worked before

This commit is contained in:
Stefan `Sec` Zehl 2011-08-04 21:58:33 +02:00
parent 0dc02b6b02
commit 7281329206
1 changed files with 4 additions and 1 deletions

View File

@ -4,6 +4,9 @@
#define PW_LEN 8
void pw_cleanup(char * pw);
void pw_set(char * pw, uint16_t * k);
void ram(void)
{
char pw[PW_LEN+1];
@ -17,7 +20,7 @@ void ram(void)
lcdPrintln(" generator");
lcdNl();
lcdNl();
pw_set(pw,&k);
pw_set(pw,k);
pw_cleanup(pw);
lcdPrint(" ");
lcdPrintln(pw);