Fix format string bugs.
authorkelmo <kelmo@0192ed92-7a03-0410-a25b-9323aeb14dbd>
Mon, 16 Jun 2008 08:50:30 +0000 (08:50 +0000)
committerkelmo <kelmo@0192ed92-7a03-0410-a25b-9323aeb14dbd>
Mon, 16 Jun 2008 08:50:30 +0000 (08:50 +0000)
Closes: #1999
git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3726 0192ed92-7a03-0410-a25b-9323aeb14dbd

ath_hal/ah_os.c
net80211/ieee80211_linux.c

index c5f701bd4b5a4c14a5d883af4bcb5dda680e079d..8228afc4df3502ddcd93b4503628ae7ce955bdf2 100644 (file)
@@ -448,7 +448,7 @@ ath_hal_lookup_register_name(struct ath_hal *ah, char *buf, int buflen,
                if (static_label) {
                        if (strncmp(static_label, "ATH5K_", 6) == 0) 
                                static_label += 6;
-                       snprintf(buf, buflen, static_label);
+                       snprintf(buf, buflen, "%s", static_label);
                        return AH_TRUE;
                }
 
index e8fe973b3fb56a3f15f08e163c3d75ee15cec3ba..b36946613d983344707163f2b8927f25394491be 100644 (file)
@@ -380,7 +380,7 @@ ieee80211_load_module(const char *modname)
 {
 #ifdef CONFIG_KMOD
        int rv;
-       rv = request_module(modname);
+       rv = request_module("%s", modname);
        if (rv < 0)
                printk(KERN_ERR "failed to automatically load module: %s; " \
                        "errno: %d\n", modname, rv);