mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* sound: bebop: strncmp length oddity
@ 2016-10-29 21:37 Joe Perches
  2016-11-17 11:47 ` [alsa-devel] " Takashi Iwai
  0 siblings, 1 reply; 4+ messages in thread
From: Joe Perches @ 2016-10-29 21:37 UTC (permalink / raw)
  To: Takashi Sakamoto; +Cc: Takashi Iwai, Clemens Ladisch, alsa-devel, LKML

15 isn't the length of the string, is that really what's desired?

linux/next/sound/firewire/bebob/bebop.c

-----------------------------

static bool
check_audiophile_booted(struct fw_unit *unit)
{
	char name[24] = {0};

	if (fw_csr_string(unit->directory, CSR_MODEL, name, sizeof(name)) < 0)
		return false;

	return strncmp(name, "FW Audiophile Bootloader", 15) != 0;
}

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2016-11-17 21:34 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-10-29 21:37 sound: bebop: strncmp length oddity Joe Perches
2016-11-17 11:47 ` [alsa-devel] " Takashi Iwai
2016-11-17 20:07   ` Takashi Sakamoto
2016-11-17 21:34     ` Nicolas Iooss

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®