In Germany, we have special automated loans ("Dispokredit") for this situation. These are expensive (14% p.a.!), but as they are meant to be used only in emergencies and for a short time only, such a situation as here would not incur fees above 1€, as the interest is most often calculated daily.