From 0a1bf29ca4b7932c305fae9298e85a3c543ea680 Mon Sep 17 00:00:00 2001 From: kelmo Date: Mon, 16 Jun 2008 08:50:30 +0000 Subject: [PATCH] Fix format string bugs. Closes: #1999 git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3726 0192ed92-7a03-0410-a25b-9323aeb14dbd --- ath_hal/ah_os.c | 2 +- net80211/ieee80211_linux.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ath_hal/ah_os.c b/ath_hal/ah_os.c index c5f701b..8228afc 100644 --- a/ath_hal/ah_os.c +++ b/ath_hal/ah_os.c @@ -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; } diff --git a/net80211/ieee80211_linux.c b/net80211/ieee80211_linux.c index e8fe973..b369466 100644 --- a/net80211/ieee80211_linux.c +++ b/net80211/ieee80211_linux.c @@ -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); -- 2.35.1