On Tue, 17 Oct 2000, Horst von Brand wrote: > Richard Guenther <[EMAIL PROTECTED]> said: > > The following one is wrong, tho - should be rather > > str[i] = dn[i]; i++; > > > > diff -x log.build -x .* -dru linux-2.4/drivers/isdn/sc/debug.c linux-2.4-fixe > > d/drivers/isdn/sc/debug.c > > > --- linux-2.4/drivers/isdn/sc/debug.c Thu Apr 2 01:21:04 1998 > > > +++ linux-2.4-fixed/drivers/isdn/sc/debug.c Mon Oct 16 14:53:49 2000 > > > @@ -70,6 +70,6 @@ > > > int i = 0; > > > > > > while(dn[i] != ',') > > > - str[i] = dn[i++]; > > > + str[i] = dn[i], i++; > > > str[i] = 0x0; > > What is wrong with plain and simple: > > for(i = 0; dn[i] != ','; i++) > str[i] = dn[i]; > str[i] = '\0'; Nothing. Feel free to submit a better patch. I was just trying to correct the code with the minimum set of modifications so as to avoid breaking anything by accident. Bernd - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] Please read the FAQ at http://www.tux.org/lkml/
- Re: Patch to remove undefined C code Helge Hafting
- Re: Patch to remove undefined C code Bernd Schmidt
- Re: Patch to remove undefined C code Richard Guenther
- Re: Patch to remove undefined C code Bernd Schmidt
- Re: Patch to remove undefined C code Richard Guenther
- Re: Patch to remove undefined C code Bernd Schmidt
- Re: Patch to remove undefined C code Horst von Brand
- Re: Patch to remove undefined C code Mark Montague
- Re: Patch to remove undefined C code Bill Wendling
- Re: Patch to remove undefined C code Horst von Brand
- Patch to remove undefined C code Bernd Schmidt
- Patch to remove undefined C code Jonathan George
- Re: Patch to remove undefined C code Ben Pfaff
- Re: Patch to remove undefined C code Alexander Viro
- Re: Patch to remove undefined C code Mike Castle
- Re: Patch to remove undefined C code Alexander Viro
- RE: Patch to remove undefined C code Jonathan George
- Re: Patch to remove undefined C code Ben Pfaff
- Re: Patch to remove undefined C code Matti Aarnio
- Re: Patch to remove undefined C code Ben Pfaff
- Re: Patch to remove undefined C code Peter Samuelson