Skip to content
Snippets Groups Projects
Commit 07c07635 authored by Laurence Withers's avatar Laurence Withers Committed by Wolfgang Denk
Browse files

miiphy: use strncpy() not sprintf()


In miiphy_register() the new device's name was initialised by passing a
string parameter as the format string to sprintf(). As this would cause
problems if it ever contained a '%' symbol, switch to using strncpy()
instead.

Signed-off-by: default avatarLaurence Withers <lwithers@guralp.com>
Cc: Andy Fleming <afleming@freescale.com>
parent 9e9579bb
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment