summaryrefslogtreecommitdiff
path: root/src/if_xcmdsrv.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2004-07-29 08:43:53 +0000
committerBram Moolenaar <Bram@vim.org>2004-07-29 08:43:53 +0000
commit269ec658f0fad22b2bf9f71b06a4e6e10277f0e5 (patch)
tree450e57b10e8afd1c2a0c49e698a73d508781f67c /src/if_xcmdsrv.c
parent5eb86f91992f5291b8b472d3e1be1888508777e6 (diff)
downloadvim-git-269ec658f0fad22b2bf9f71b06a4e6e10277f0e5.tar.gz
updated for version 7.0013
Diffstat (limited to 'src/if_xcmdsrv.c')
-rw-r--r--src/if_xcmdsrv.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/if_xcmdsrv.c b/src/if_xcmdsrv.c
index a82139e64..fb5999a54 100644
--- a/src/if_xcmdsrv.c
+++ b/src/if_xcmdsrv.c
@@ -683,6 +683,7 @@ serverGetVimNames(dpy)
}
if (regProp != empty_prop)
XFree(regProp);
+ ga_append(&ga, NUL);
return ga.ga_data;
}
@@ -1258,7 +1259,7 @@ serverEventProc(dpy, eventPtr)
ga_append(&reply, 0);
ga_concat(&reply, (char_u *)"-c 1");
}
- ga_append(&reply, 0);
+ ga_append(&reply, NUL);
(void)AppendPropCarefully(dpy, resWindow, commProperty,
reply.ga_data, reply.ga_len);
}
@@ -1363,7 +1364,7 @@ serverEventProc(dpy, eventPtr)
if ((r = ServerReplyFind(win, SROP_Add)) != NULL)
{
ga_concat(&(r->strings), str);
- ga_append(&(r->strings), 0);
+ ga_append(&(r->strings), NUL);
}
#ifdef FEAT_AUTOCMD
sprintf((char *)winstr, "0x%x", (unsigned int)win);