I've written one blog post already about how to be a friend and one that briefly touched on being aware of what language you use, but I came across this article that kind of sums the two up very nicely. It provides some good examples of responses that would be more harmful than good and also gives some good pointers on how to better respond when someone opens up to you.
Click here to give it a read.