Re: sound/sparc/dbri.c: snd_dbri_pcm(): strcpy(pcm->name, card->shortname)?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Roel Kluin <12o3l@xxxxxxxxxx>
Date: Thu, 20 Mar 2008 18:09:53 +0100

> from sound/sparc/dbri.c:2233:
> 
> strcpy(pcm->name, card->shortname);
> 
> shouldn't that be 'strcpy(card->shortname, pcm->name)'?

Just like the NIU case your analysis is inaccurate.

strcpy() copies the second argument string to the first argument's
string area.

dbri_probe() sets pcm->shortname, and here we are propagating that
string to pcm->name
--
To unsubscribe from this list: send the line "unsubscribe sparclinux" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Kernel Development]     [DCCP]     [Linux ARM Development]     [Linux]     [Photo]     [Yosemite Help]     [Linux ARM Kernel]     [Linux SCSI]     [Linux x86_64]     [Linux Hams]

  Powered by Linux