I wouldn't risk it. In theory, it's plenty of time, even though you might well have to take the shuttle to a different terminal. However, a bit of snow or a slightly delayed aircraft from Buffalo could put your travel plans in disarray. Thus, I would take an earlier flight from Buffalo, even though you might have to wait several hours in Dulles for your connection.