Oh... buffer is probably too small... and strcat doesn't handle that... I could rewrite it myself...