Muhammad bin Ibrahim (may Allah have mercy on him) said that Ibn Bukayr narrated the hadith to us in the same way.
It seems that he mentioned both hadiths together, and the scribe made an error, so part of the text of the second hadith entered the first chain. If the narration of al-Shafi'i and al-Qa'nabi (through al-Bukhari from him) is preserved, then it is possible that Malik narrated it in both wordings; and Allah knows best. Isma'il bin Ja'far narrated it from Abdullah bin Dinar similar to the first narration from Malik.
Hadith Referenceالسنن الكبرى للبيهقي / كتاب الصيام / 7927