summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam Jackson <ajax@nwnk.net>2005-02-18 16:40:54 +0000
committerAdam Jackson <ajax@nwnk.net>2005-02-18 16:40:54 +0000
commitb646515d6124b906f5a0c2cf76f8fda590884ef0 (patch)
tree0c9d496148c3e6e4aeb9d7e60dbd62d161fde44c
parent80d844d99250e7bc26fbae7ca4a274ad46f7676f (diff)
Bug #2567: Fix reversed memset arguments. (David Krause)
-rw-r--r--tests/dristat.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/dristat.c b/tests/dristat.c
index cb91132e..89853164 100644
--- a/tests/dristat.c
+++ b/tests/dristat.c
@@ -131,7 +131,7 @@ static void getclients(int fd)
for (i = 0; !drmGetClient(fd, i, &auth, &pid, &uid, &magic, &iocs); i++) {
sprintf(buf, "/proc/%d/cmdline", pid);
- memset(cmd, sizeof(cmd), 0);
+ memset(cmd, 0, sizeof(cmd));
if ((procfd = open(buf, O_RDONLY, 0)) >= 0) {
read(procfd, cmd, sizeof(cmd)-1);
close(procfd);