diff options
author | Olivier Blin <oblin@mandriva.org> | 2005-04-20 22:14:51 +0000 |
---|---|---|
committer | Olivier Blin <oblin@mandriva.org> | 2005-04-20 22:14:51 +0000 |
commit | df04942bb4543d6b50c10513cb7b98d966605e05 (patch) | |
tree | a31d623d4aab35f960b06d7ff4d4326a019e8fb5 /mdk-stage1 | |
parent | 7a4a20f30e85a00b25b238143e1ca2f76871f05d (diff) | |
download | drakx-df04942bb4543d6b50c10513cb7b98d966605e05.tar drakx-df04942bb4543d6b50c10513cb7b98d966605e05.tar.gz drakx-df04942bb4543d6b50c10513cb7b98d966605e05.tar.bz2 drakx-df04942bb4543d6b50c10513cb7b98d966605e05.tar.xz drakx-df04942bb4543d6b50c10513cb7b98d966605e05.zip |
fix hex key parsing
Diffstat (limited to 'mdk-stage1')
-rw-r--r-- | mdk-stage1/wireless.c | 2 |
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; |