Kieran Mansley wrote:
On Wed, 2009-06-17 at 16:41 +0200, Jesper Vestergaard wrote:
I use strstr to search in it:

if (strstr(pcRxString, cSearchString) != NULL )
    controlLED(led,LED_ON);

which have the same problem. So guess it's the avr32 toolchain that is causing the problem.

Not quite - the toolchain is probably fine.  The problem is you're
trying to use string functions like printf and strstr on something that
is not a NULL-terminated string.  If you want to use those functions,
you'll have to NULL-terminate the data given to you by lwIP before you
do, as they rely on the NULL-termination to work out the length of the
string.
Kieran



_______________________________________________
lwip-users mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/lwip-users


Now i understand. Silly me

Thanks


_______________________________________________
lwip-users mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/lwip-users

Reply via email to