mirror of
https://github.com/torvalds/linux.git
synced 2026-12-04 04:14:24 +00:00
Since snprintf() returns the would-be-output size instead of the actual output size, the succeeding calls may go beyond the given buffer limit. Fix it by replacing with scnprintf(). Link: https://lore.kernel.org/r/[email protected] Cc: "James E . J . Bottomley" <[email protected]> Cc: "Martin K . Petersen" <[email protected]> Cc: Satish Kharat <[email protected]> Cc: Sesidhar Baddela <[email protected]> Cc: Karan Tilak Kumar <[email protected]> Cc: [email protected] Signed-off-by: Takashi Iwai <[email protected]> Signed-off-by: Martin K. Petersen <[email protected]>