Hey wysota,

I'd check strstr() result for NULL
I don't even have to try out the code, not checking for NULL from strstr is the error.

That is basic stuff, how can I forget that, I'm getting too old for this, I have to try another hobby like go fishing or so.