<P>returning a pointer to something on the stack is something I call an error</P>
<P>(how do you ensure that the buffer will not get overwritten by another function call ?)</P>
<P>A+<BR><BR></P>
<BLOCKQUOTE style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #ff0000 2px solid">&gt; Message du 02/06/05 15:25<BR>&gt; De : "Dimi Paun" <DIMI@LATTICA.COM><BR>&gt; A : pouech-eric@wanadoo.fr, wine-devel@winehq.org<BR>&gt; Copie à : <BR>&gt; Objet : Re: fixes for -Wmissing-declarations and -Wwrite-strings warnings<BR>&gt; <BR>&gt; From: "Pouech Eric DMI AEI CAEN" <POUECH-ERIC@WANADOO.FR><BR>&gt; &gt; looking at the patch, I saw something in the code that made me sick:<BR>&gt; &gt; char *audioAutoDetect(void)<BR>&gt; &gt; {<BR>&gt; &gt; [snip]<BR>&gt; &gt; char *driversFound[10];<BR>&gt; &gt; [snip]<BR>&gt; &gt; return driversFound[0];<BR>&gt; &gt; [snip]<BR>&gt; &gt; }<BR>&gt; &gt; <BR>&gt; &gt; can someone fix that broken code ?<BR>&gt; <BR>&gt; Yeah, it's not pretty, but just by looking at this snippet there is no<BR>&gt; obvious error in the above AFAICT.<BR></BLOCKQUOTE>