Careless smoking is to blame for a two-alarm fire that ripped through several townhouses in Glasgow on Wednesday night.