My example was especially for the case you described: You said, yo don't know if there are more than 3 spaces.
To your question:
Delphi-Quellcode:
Buffer: array[0..6] of char;
buffer2: array[0..3] of char;
After writing to the buffer, you should use
Delphi-Quellcode:
Buffer[6] := #0;
Buffer2[3] := #0;
because then you can use it as a nullterminated string
Delphi-Quellcode:
version := version + StrPas(Buffer);
//...
version := version + StrPas(Buffer2);
A simple + doesn't work in most cases.