X-Git-Url: http://pileus.org/git/?a=blobdiff_plain;f=mm%2Fmempolicy.c;h=eca4a3129129751208b41cfe808e9e31e5dc7b5f;hb=a238dcfa84bcd9d5d0ceba3fa66a335f233f8f1b;hp=c4403cdf3433ddc79515dac25e5eedd0b39fa320;hpb=cdc7ef8981317cfa9a462b784935e4d2705c6776;p=~andy%2Flinux diff --git a/mm/mempolicy.c b/mm/mempolicy.c index c4403cdf343..eca4a312912 100644 --- a/mm/mempolicy.c +++ b/mm/mempolicy.c @@ -2950,7 +2950,7 @@ void mpol_to_str(char *buffer, int maxlen, struct mempolicy *pol) return; } - p += snprintf(p, maxlen, policy_modes[mode]); + p += snprintf(p, maxlen, "%s", policy_modes[mode]); if (flags & MPOL_MODE_FLAGS) { p += snprintf(p, buffer + maxlen - p, "=");