mirror of
https://github.com/php/php-src.git
synced 2024-11-27 03:44:07 +08:00
fix buffer size
This commit is contained in:
parent
895c75e23c
commit
a118a1e7b0
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user