summaryrefslogtreecommitdiff
blob: 4b0dc577f60f986a8c05271cf2f2e3cda161a5b3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
diff -aur ap-utils-1.4-orig/lib/wlan.c ap-utils-1.4/lib/wlan.c
--- ap-utils-1.4-orig/lib/wlan.c	2003-10-31 12:15:00.000000000 -0500
+++ ap-utils-1.4/lib/wlan.c	2004-02-24 23:00:25.214209480 -0500
@@ -140,6 +140,7 @@
     _("Short"), _("Long")};
     short __rates[4] = { 2, 4, 11, 22 };
     int i, c = 0;
+    char ch;
     unsigned int ap_regdomain;
 
     if (ap_type == ATMEL12350) {
@@ -508,10 +509,10 @@
 		i++;
 	    }
 	    if (m_essid) {
-		c = strlen(domain);
+		c = ch = strlen(domain);
 		varbinds[i].oid = operESSIDLength;
 		varbinds[i].len_oid = sizeof(operESSIDLength);
-		varbinds[i].value = (char *)&c;
+		varbinds[i].value = (char *)&ch;
 		varbinds[i].len_val = 1;
 		varbinds[i].type = INT_VALUE;
 		i++;