You forgot to null-terminate escaped_space[].
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
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