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);