diff options
author | Michael J. Chudobiak <mjc@avtechpulse.com> | 2012-11-09 11:41:11 -0500 |
---|---|---|
committer | Michael J. Chudobiak <mjc@avtechpulse.com> | 2012-11-09 11:41:11 -0500 |
commit | 16d6dea985b85ff596e98d4dc7f15f341ad6966b (patch) | |
tree | 445a695bc6c58849b0600af16bdd44ffe79f932e /dds.c | |
parent | 65c7900768799338b143a024c64b32661a38200e (diff) |
cppcheck fixes
Diffstat (limited to 'dds.c')
-rw-r--r-- | dds.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -36,7 +36,7 @@ void dds_setamplitude(float millivolts) char scalebuff[64]; if (read(scalefd, scalebuff, sizeof(scalebuff))) { - sscanf(scalebuff, "%f\n", &scale); + sscanf(scalebuff, "%10f\n", &scale); // the string should be ?.??? but round up the width a bit just in case } if (scale == 0) { |