FR 482 then FR 4545 at Barcelona
Málaga → Barcelona → Porto
Timetable, Barcelona time
00:35FR 482 from Málaga at the gate
19:15FR 4545 to Porto leaves the gate
18 h 40 apart on the timetable
FR 4545 leaves 18 h 40 after FR 482 arrives on the timetable: more than half a day, so not a connection we count.