fix buffer size

This commit is contained in:
Daniel Beulshausen 2001-08-07 13:29:51 +00:00
parent 895c75e23c
commit a118a1e7b0

View File

@ -336,7 +336,7 @@ TSRM_API int shmctl(int key, int cmd, struct shmid_ds *buf) {
switch (cmd) {
case IPC_STAT:
memcpy(buf, shm->descriptor, sizeof(shm->descriptor));
memcpy(buf, shm->descriptor, sizeof(struct shmid_ds));
return 0;
case IPC_SET: