From 8139bc355875cceb5be6c181eb65222979e76bef Mon Sep 17 00:00:00 2001 From: David Schleef Date: Sun, 15 Jul 2001 19:57:08 +0000 Subject: [PATCH] Replace --- demo/cmd.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/demo/cmd.c b/demo/cmd.c index 091284d..d40ff80 100644 --- a/demo/cmd.c +++ b/demo/cmd.c @@ -21,6 +21,7 @@ #include #include #include +#include #include "examples.h" #define BUFSZ 10000 @@ -204,7 +205,7 @@ int prepare_cmd_lib(comedi_t *dev,int subdevice,comedi_cmd *cmd) */ int prepare_cmd(comedi_t *dev,int subdevice,comedi_cmd *cmd) { - memset(cmd,0,sizeof(cmd)); + memset(cmd,0,sizeof(*cmd)); /* the subdevice that the command is sent to */ cmd->subdev = subdevice; -- 2.26.2