summaryrefslogtreecommitdiff
path: root/src/util/pin.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/util/pin.c')
-rw-r--r--src/util/pin.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/util/pin.c b/src/util/pin.c
index b873535..47602b6 100644
--- a/src/util/pin.c
+++ b/src/util/pin.c
@@ -52,7 +52,7 @@ static int pin_handler(struct lgsm_handle *lh,
} else {
do {
printf("Please enter %s: ", lgsm_pin_name(type));
- rc = fscanf(stdin, "%8s", &pinbuf);
+ rc = fscanf(stdin, "%8s", pinbuf);
} while (rc < 1);
switch (type) {
@@ -60,7 +60,7 @@ static int pin_handler(struct lgsm_handle *lh,
case GSMD_PIN_SIM_PUK2:
do {
printf("Please enter new PIN: ");
- rc = fscanf(stdin, "%8s", &pinbuf2);
+ rc = fscanf(stdin, "%8s", pinbuf2);
newpin = pinbuf2;
} while (rc < 1);
break;
personal git repositories of Harald Welte. Your mileage may vary