aboutsummaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-rw-r--r--examples/hid-data/commandline/hidtool.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/hid-data/commandline/hidtool.c b/examples/hid-data/commandline/hidtool.c
index 923482a..9816052 100644
--- a/examples/hid-data/commandline/hidtool.c
+++ b/examples/hid-data/commandline/hidtool.c
@@ -110,7 +110,7 @@ int err;
}
}else if(strcasecmp(argv[1], "write") == 0){
int i, pos;
- bzero(buffer, sizeof(buffer));
+ memset(buffer, 0, sizeof(buffer));
for(pos = 1, i = 2; i < argc && pos < sizeof(buffer); i++){
pos += hexread(buffer + pos, argv[i], sizeof(buffer) - pos);
}