I am trying to combine two character buffers in C but I am losing bytes at the end. My current code is as below:
//firstblock and secondblock are captured at