diff options
author | Adam Jackson <ajax@nwnk.net> | 2005-02-18 16:40:54 +0000 |
---|---|---|
committer | Adam Jackson <ajax@nwnk.net> | 2005-02-18 16:40:54 +0000 |
commit | b646515d6124b906f5a0c2cf76f8fda590884ef0 (patch) | |
tree | 0c9d496148c3e6e4aeb9d7e60dbd62d161fde44c /tests | |
parent | 80d844d99250e7bc26fbae7ca4a274ad46f7676f (diff) | |
download | libdrm-b646515d6124b906f5a0c2cf76f8fda590884ef0.tar.gz libdrm-b646515d6124b906f5a0c2cf76f8fda590884ef0.tar.bz2 libdrm-b646515d6124b906f5a0c2cf76f8fda590884ef0.zip |
Bug #2567: Fix reversed memset arguments. (David Krause)
Diffstat (limited to 'tests')
-rw-r--r-- | tests/dristat.c | 2 |
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); |