summaryrefslogtreecommitdiffstats
path: root/x11vnc/util.c
diff options
context:
space:
mode:
authorrunge <runge>2008-12-10 17:12:27 +0000
committerrunge <runge>2008-12-10 17:12:27 +0000
commit8bef644d17f62ea6daf7459b863f05de187966fe (patch)
tree5137fbbab354ccfe29622a99c3d913c558d1c87a /x11vnc/util.c
parente68192915936e173b887856a019d4a54ba96069c (diff)
downloadlibtdevnc-8bef644d17f62ea6daf7459b863f05de187966fe.tar.gz
libtdevnc-8bef644d17f62ea6daf7459b863f05de187966fe.zip
x11vnc: 0.9.6 release. Some strtok bugfixes. rename -tlsvnc
to -anontls. Disable ssl caching. No cert creation prompting in inetd or bg modes. waitpid a bit more carefully on ssl helpers. Tune ssl initial timeouts. Let -create user specify starting X display. fix -rfbport prompt gui for older tk. -sslonly option. Error if no -ssl with related options. -rand option. -ssl implies -ssl SAVE
Diffstat (limited to 'x11vnc/util.c')
-rw-r--r--x11vnc/util.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/x11vnc/util.c b/x11vnc/util.c
index 8773538..83ec4c9 100644
--- a/x11vnc/util.c
+++ b/x11vnc/util.c
@@ -333,10 +333,7 @@ char **create_str_list(char *cslist) {
}
/* the extra last one holds NULL */
- list = (char **) malloc( (n+1)*sizeof(char *) );
- for(i=0; i < n+1; i++) {
- list[i] = NULL;
- }
+ list = (char **) calloc((n+1)*sizeof(char *), 1);
p = strtok(str, ",");
i = 0;