Carnegie Mellon University's Software Engineering Institute offers a week-long training program called "CERT Secure Coding in C and C++".
The training program has students performing several hands on exercises -- these exercises are included in this repository. They are all written in C.
In addition to the training course materials, you can use the book (ISBN 0-321-82213-7) as reference.