summaryrefslogtreecommitdiff
path: root/maskaudit.py
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2009-11-11 16:35:59 +0000
committerEric S. Raymond <esr@thyrsus.com>2009-11-11 16:35:59 +0000
commit6f80c1a7630158a04f31b7514d0054ca98be14e8 (patch)
tree9828b184cb594f449cc24e9a108b148f3cee9846 /maskaudit.py
parentf176802eca7450cf351f31c2907387e41960cfa1 (diff)
downloadgpsd-6f80c1a7630158a04f31b7514d0054ca98be14e8.tar.gz
Splint cleanup. All regression tests pass.
Diffstat (limited to 'maskaudit.py')
-rwxr-xr-xmaskaudit.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/maskaudit.py b/maskaudit.py
index f64b0805..b9610afa 100755
--- a/maskaudit.py
+++ b/maskaudit.py
@@ -84,7 +84,7 @@ const char *gpsd_maskdump(gps_mask_t set)
print '''\
};
- bzero(buf, sizeof(buf));
+ memset(buf, '\0', sizeof(buf));
buf[0] = '{';
for (sp = names; sp < names + sizeof(names)/sizeof(names[0]); sp++)
if ((set & sp->mask)!=0) {