Skip to contentSkip to conversation

echoaudio, fix driver name overflow.

PATCH New Giuliano Pochini 1 participant 1 message Jul 18, 2005

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 echoaudio, fix driver name overflow.

- Driver name is only 16 bytes long. This patch fixes a string overflow in the driver of some cards.

pci/echoaudio/echoaudio.c renamed from pci/echoaudio/echoaudio.c__orig +1 -1
@@ -1878,7 +1878,7 @@
 		return err;
 	}
 
-	strcpy(card->driver, "Echoaudio " ECHOCARD_NAME);
+	strcpy(card->driver, "Echo_" ECHOCARD_NAME);
 	strcpy(card->shortname, chip->card_name);
 
 	dsp = "56301";

--
Giuliano.

-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click