re: Function strstr and MinGW

2010-11-05 Thread Dan Kegel
You forgot to null-terminate escaped_space[].

Re: Function strstr and MinGW

2010-11-05 Thread GOUJON Alexandre
On 11/05/2010 09:11 PM, Ozan Türkyılmaz wrote: \0 ending? I think you're right. I forgot '\0' at the end of escaped_space. That's so stupid ! Well, sorry for the noise and thanks for your help. It remember me a sentence a teacher told me: "When there are errors, we know a program doesn't

Re: Function strstr and MinGW

2010-11-05 Thread Eryk Wieliczko
brutalcompu...@b:/tmp$ i586-mingw32msvc-gcc test.c brutalcompu...@b:/tmp$ wine a.exe 17_'A simple test . ' brutalcompu...@b:/tmp$ gcc test.c brutalcompu...@b:/tmp$ ./a.out 47_'a...@space@sim...@space@t...@space@@sp...@.@space@' brutalcompu...@b:/tmp$ I don't understand either... Ubuntu 10.04. i5