How can I make sure to get the entire program for programs that run over the scheduled air time?

Change the Record Options for the program by adjusting the start and end times to ensure that everything gets recorded.  For example, you can program the recording to start 1 minute early and end 1 minute late.