summaryrefslogtreecommitdiffstats
path: root/isys
diff options
context:
space:
mode:
authorJeremy Katz <katzj@redhat.com>2005-04-12 21:15:36 +0000
committerJeremy Katz <katzj@redhat.com>2005-04-12 21:15:36 +0000
commitb60079c94deb885c99f20660fd555810bfcea729 (patch)
tree6ab233f3aa36646e2ff9645701d2d716c012b809 /isys
parenta0bca11ac57ffcedb17e9a87c6cad05096208704 (diff)
downloadanaconda-b60079c94deb885c99f20660fd555810bfcea729.tar.gz
anaconda-b60079c94deb885c99f20660fd555810bfcea729.tar.xz
anaconda-b60079c94deb885c99f20660fd555810bfcea729.zip
2005-04-12 Jeremy Katz <katzj@redhat.com>
* isys/wireless.c: Free'ing mem from alloca() can be bad (#129058)
Diffstat (limited to 'isys')
-rw-r--r--isys/wireless.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/isys/wireless.c b/isys/wireless.c
index d10bededb..b5dab1cd7 100644
--- a/isys/wireless.c
+++ b/isys/wireless.c
@@ -136,7 +136,7 @@ static int parse_wep_key(char * in, unsigned char * key) {
char *buff, *hex, *out, *p;
/* hexadecimal digits, straight from iwlib.c */
- buff = alloca(IW_ENCODING_TOKEN_MAX + strlen(in) + 1);
+ buff = malloc(IW_ENCODING_TOKEN_MAX + strlen(in) + 1);
if(buff == NULL) {
fprintf(stderr, "Malloc failed (string too long ?)\n");
return(-1);