pwm: use posix open instead of fopen
authorThomas Ingleby <thomas.c.ingleby@intel.com>
Tue, 20 May 2014 09:41:47 +0000 (10:41 +0100)
committerBrendan Le Foll <brendan.le.foll@intel.com>
Tue, 20 May 2014 09:57:20 +0000 (10:57 +0100)
commitfa7180cb9126311166b9a1f9701a2b7c6981aa80
treeb5c77652223ed399467fd5657ed1ee0cee3a63b3
parente2f72540ef756b212258932c480b0e198eaf533d
pwm: use posix open instead of fopen

* Add safety to output char arrays and filepaths.

Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
src/pwm/pwm.c