summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--recordmydesktop/src/initialize_data.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/recordmydesktop/src/initialize_data.c b/recordmydesktop/src/initialize_data.c
index 74d32cf..c65fcf1 100644
--- a/recordmydesktop/src/initialize_data.c
+++ b/recordmydesktop/src/initialize_data.c
@@ -126,7 +126,7 @@ int InitializeData(ProgData *pdata,
pdata->shimage->height,
IPC_CREAT|0777);
pdata->shminfo.shmaddr=pdata->shimage->data=shmat(pdata->shminfo.shmid,
- 0,0);
+ NULL,0);
pdata->shminfo.readOnly = False;
if(!XShmAttach(pdata->dpy,&pdata->shminfo)){
fprintf(stderr,"Failed to attach shared memory to proccess.\n");
© All Rights Reserved