FR 8385 then LA 5745 at Barcelona
Budapest → Barcelona → Málaga
Timetable, Barcelona time
18:00FR 8385 from Budapest at the gate
12:50LA 5745 to Málaga leaves the gate
18 h 50 apart on the timetable, overnight
LA 5745 leaves 18 h 50 after FR 8385 arrives on the timetable: more than half a day, so not a connection we count.