summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.org>2005-04-20 22:14:51 +0000
committerOlivier Blin <oblin@mandriva.org>2005-04-20 22:14:51 +0000
commitdf04942bb4543d6b50c10513cb7b98d966605e05 (patch)
treea31d623d4aab35f960b06d7ff4d4326a019e8fb5
parent7a4a20f30e85a00b25b238143e1ca2f76871f05d (diff)
downloaddrakx-df04942bb4543d6b50c10513cb7b98d966605e05.tar
drakx-df04942bb4543d6b50c10513cb7b98d966605e05.tar.gz
drakx-df04942bb4543d6b50c10513cb7b98d966605e05.tar.bz2
drakx-df04942bb4543d6b50c10513cb7b98d966605e05.tar.xz
drakx-df04942bb4543d6b50c10513cb7b98d966605e05.zip
fix hex key parsing
-rw-r--r--mdk-stage1/wireless.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mdk-stage1/wireless.c b/mdk-stage1/wireless.c
index ba3224468..1785dbfa7 100644
--- a/mdk-stage1/wireless.c
+++ b/mdk-stage1/wireless.c
@@ -95,7 +95,7 @@ static int wireless_set_restricted_key(int socket, const char *ifname, const cha
int key_len = 0;
unsigned int tmp;
- while (sscanf(key + key_len, "%2X", &tmp) == 1)
+ while (sscanf(key + 2*key_len, "%2X", &tmp) == 1)
real_key[key_len++] = (unsigned char) tmp;
wrq.u.data.flags = IW_ENCODE_RESTRICTED;