summaryrefslogtreecommitdiff
path: root/src/listen.c
Commit message (Collapse)AuthorAgeFilesLines
* Always terminate strncpy results.Tobias Stoeckmann2019-03-101-6/+18
| | | | | | | | | | The function strncpy does not guarantee to append a terminating NUL character to the destination. This patch merges libSM's way of handling this issue into libICE. Signed-off-by: Tobias Stoeckmann <tobias@stoeckmann.org> Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
* Remove unneeded ^L symbols.Emil Velikov2017-09-071-6/+6
| | | | | | Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com> Reviewed-by: Adam Jackson <ajax@redhat.com> Reviewed-by: Eric Engestrom <eric.engestrom@imgtec.com> (IRC)
* Stop casting return values from mallocAlan Coopersmith2013-08-081-7/+4
| | | | Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
* Get rid of casts to (char *) in calls to free()Alan Coopersmith2013-08-081-7/+7
| | | | Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
* Strip trailing whitespaceAlan Coopersmith2011-09-161-2/+2
| | | | | | | Performed with: find * -type f | xargs perl -i -p -e 's{[ \t]+$}{}' git diff -w & git diff -b show no diffs from this change Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
* Purge cvs tags.Jesse Adkins2010-10-061-1/+0
| | | | | Signed-off-by: Jesse Adkins <jesserayadkins@gmail.com> Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
* Set the close-on-exec flag for listening socketsJulien Cristau2010-05-111-0/+2
| | | | | | | | | | This prevents xsm from leaking file descriptors to the processes it starts. X.Org bug#22932 <http://bugs.freedesktop.org/show_bug.cgi?id=22932> Reported-by: Kalle Olavi Niemitalo <kon@iki.fi> Signed-off-by: Julien Cristau <jcristau@debian.org>
* ANSI CPeter Breitenlohner2009-01-061-30/+24
| | | | | | | | | | | | convert all old style function declarations see also: Paulo Cesar Pereira de Andrade <pcpa@mandriva.com.br> http://bugs.freedesktop.org/show_bug.cgi?id=14683 http://bugs.freedesktop.org/attachment.cgi?id=14582 see also: Magnus Kessler <Magnus.Kessler@gmx.net> http://lists.freedesktop.org/archives/xorg/2008-October/039799.html http://lists.freedesktop.org/archives/xorg/attachments/20081030/b2ea5b1c/attachment-0001.bin
* Replace many malloc(strlen()); strcpy() pairs with strdup()Alan Coopersmith2007-04-051-8/+1
|
* Coverity #1085: Double free of pointer "*listenObjsRet"Alan Coopersmith2007-04-051-0/+2
| | | | | | | | If malloc failed in the loop in IceListenForConnections, the error path would free all previous allocations, then loop around and try again, and if it failed again, free the previous allocations again. On the other hand, if it succeeded on the later tries, then the memory would just be leaked, since the error would be returned and not the pointer to them.
* Replace <X11/Xtrans.h> with <X11/Xtrans/Xtrans.h>Alexander Gottwald2005-06-091-1/+1
| | | | Copy Xtrans.h to exports/include/X11/Xtrans only
* - Conditionally include config.h in the ICE source.XORG-6_8_99_9XORG-6_8_99_8XORG-6_8_99_10Søren Sandmann Pedersen2005-05-171-0/+3
| | | | - Add ICE to symlink.sh
* R6.6 is the Xorg base-lineXORG-MAINXORG-STABLEKaleb Keithley2003-11-141-0/+280