summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/ICElibint.h2
-rw-r--r--src/authutil.c27
-rw-r--r--src/connect.c2
-rw-r--r--src/error.c2
-rw-r--r--src/getauth.c2
-rw-r--r--src/globals.h2
-rw-r--r--src/iceauth.c2
-rw-r--r--src/listenwk.c2
-rw-r--r--src/misc.c2
-rw-r--r--src/process.c2
-rw-r--r--src/protosetup.c2
-rw-r--r--src/setauth.c2
-rw-r--r--src/shutdown.c2
13 files changed, 24 insertions, 27 deletions
diff --git a/src/ICElibint.h b/src/ICElibint.h
index d595680..fd84fde 100644
--- a/src/ICElibint.h
+++ b/src/ICElibint.h
@@ -26,7 +26,7 @@ in this Software without prior written authorization from The Open Group.
Author: Ralph Mor, X Consortium
******************************************************************************/
-/* $XFree86: xc/lib/ICE/ICElibint.h,v 1.7 2003/11/17 22:20:05 dawes Exp $ */
+/* $XFree86: xc/lib/ICE/ICElibint.h,v 1.6 2001/12/14 19:53:35 dawes Exp $ */
#ifndef _ICELIBINT_H_
#define _ICELIBINT_H_
diff --git a/src/authutil.c b/src/authutil.c
index abdbf44..564a91f 100644
--- a/src/authutil.c
+++ b/src/authutil.c
@@ -1,4 +1,5 @@
/* $Xorg: authutil.c,v 1.5 2001/02/09 02:03:26 xorgcvs Exp $ */
+/* $XdotOrg: xc/lib/ICE/authutil.c,v 1.1.4.2.4.1 2004/03/04 17:46:35 eich Exp $ */
/******************************************************************************
@@ -26,7 +27,7 @@ in this Software without prior written authorization from The Open Group.
Author: Ralph Mor, X Consortium
******************************************************************************/
-/* $XFree86: xc/lib/ICE/authutil.c,v 3.9 2002/05/31 18:45:41 dawes Exp $ */
+/* $XFree86: authutil.c,v 3.9 2002/05/31 18:45:41 dawes Exp $ */
#include <X11/ICE/ICElib.h>
#include "ICElibint.h"
@@ -418,25 +419,21 @@ char **stringp;
if (!read_short (file, &len))
return (0);
- if (len == 0)
- {
- data = 0;
- }
- else
- {
- data = malloc ((unsigned) len + 1);
-
- if (!data)
+ data = malloc ((unsigned) len + 1);
+
+ if (!data)
return (0);
-
- if (fread (data, (int) sizeof (char), (int) len, file) != len)
+
+ if (len != 0)
+ {
+ if (fread (data, (int) sizeof (char), (int) len, file) != len)
{
free (data);
return (0);
- }
-
- data[len] = '\0';
+ }
+
}
+ data[len] = '\0';
*stringp = data;
diff --git a/src/connect.c b/src/connect.c
index 2070ece..e2eb7ad 100644
--- a/src/connect.c
+++ b/src/connect.c
@@ -26,7 +26,7 @@ in this Software without prior written authorization from The Open Group.
Author: Ralph Mor, X Consortium
******************************************************************************/
-/* $XFree86: xc/lib/ICE/connect.c,v 3.10 2002/12/02 21:50:29 tsi Exp $ */
+/* $XFree86: xc/lib/ICE/connect.c,v 3.9 2001/12/14 19:53:35 dawes Exp $ */
#include <X11/ICE/ICElib.h>
#include "ICElibint.h"
diff --git a/src/error.c b/src/error.c
index b9f527a..09fbbb2 100644
--- a/src/error.c
+++ b/src/error.c
@@ -26,7 +26,7 @@ in this Software without prior written authorization from The Open Group.
Author: Ralph Mor, X Consortium
******************************************************************************/
-/* $XFree86: xc/lib/ICE/error.c,v 1.6 2001/12/14 19:53:35 dawes Exp $ */
+/* $XFree86: xc/lib/ICE/error.c,v 1.5 2001/10/28 03:32:28 tsi Exp $ */
#include <X11/ICE/ICElib.h>
#include "ICElibint.h"
diff --git a/src/getauth.c b/src/getauth.c
index 9c3e52a..15db492 100644
--- a/src/getauth.c
+++ b/src/getauth.c
@@ -26,7 +26,7 @@ in this Software without prior written authorization from The Open Group.
Author: Ralph Mor, X Consortium
******************************************************************************/
-/* $XFree86: xc/lib/ICE/getauth.c,v 1.3 2001/12/14 19:53:35 dawes Exp $ */
+/* $XFree86: xc/lib/ICE/getauth.c,v 1.2 2001/10/28 03:32:28 tsi Exp $ */
#include <X11/ICE/ICElib.h>
#include "ICElibint.h"
diff --git a/src/globals.h b/src/globals.h
index 129bf00..0532f55 100644
--- a/src/globals.h
+++ b/src/globals.h
@@ -26,7 +26,7 @@ in this Software without prior written authorization from The Open Group.
Author: Ralph Mor, X Consortium
******************************************************************************/
-/* $XFree86: xc/lib/ICE/globals.h,v 1.5 2002/05/31 18:45:41 dawes Exp $ */
+/* $XFree86: xc/lib/ICE/globals.h,v 1.4 2001/12/14 19:53:35 dawes Exp $ */
extern void _IceDefaultErrorHandler ();
extern void _IceDefaultIOErrorHandler ();
diff --git a/src/iceauth.c b/src/iceauth.c
index d03cf25..c3e78a3 100644
--- a/src/iceauth.c
+++ b/src/iceauth.c
@@ -26,7 +26,7 @@ in this Software without prior written authorization from The Open Group.
Author: Ralph Mor, X Consortium
******************************************************************************/
-/* $XFree86: xc/lib/ICE/iceauth.c,v 3.6 2002/05/31 18:45:41 dawes Exp $ */
+/* $XFree86: xc/lib/ICE/iceauth.c,v 3.5 2001/12/14 19:53:36 dawes Exp $ */
#include <X11/ICE/ICElib.h>
#include "ICElibint.h"
diff --git a/src/listenwk.c b/src/listenwk.c
index f01cb14..ee08723 100644
--- a/src/listenwk.c
+++ b/src/listenwk.c
@@ -25,7 +25,7 @@ used in advertising or otherwise to promote the sale, use or other dealings
in this Software without prior written authorization from The Open Group.
*/
-/* $XFree86: xc/lib/ICE/listenwk.c,v 1.4 2001/12/14 19:53:36 dawes Exp $ */
+/* $XFree86: xc/lib/ICE/listenwk.c,v 1.3 2001/01/17 19:41:29 dawes Exp $ */
/* Author: Ralph Mor, X Consortium */
diff --git a/src/misc.c b/src/misc.c
index 1c28e8d..e174b60 100644
--- a/src/misc.c
+++ b/src/misc.c
@@ -26,7 +26,7 @@ in this Software without prior written authorization from The Open Group.
Author: Ralph Mor, X Consortium
******************************************************************************/
-/* $XFree86: xc/lib/ICE/misc.c,v 1.4 2001/12/14 19:53:36 dawes Exp $ */
+/* $XFree86: xc/lib/ICE/misc.c,v 1.3 2001/01/17 19:41:29 dawes Exp $ */
#ifdef WIN32
#define _WILLWINSOCK_
diff --git a/src/process.c b/src/process.c
index d733017..37f97d7 100644
--- a/src/process.c
+++ b/src/process.c
@@ -26,7 +26,7 @@ in this Software without prior written authorization from The Open Group.
Author: Ralph Mor, X Consortium
******************************************************************************/
-/* $XFree86: xc/lib/ICE/process.c,v 3.10 2003/10/23 21:31:49 tsi Exp $ */
+/* $XFree86: xc/lib/ICE/process.c,v 3.9tsi Exp $ */
#include <X11/ICE/ICElib.h>
#include "ICElibint.h"
diff --git a/src/protosetup.c b/src/protosetup.c
index 287932a..fa36319 100644
--- a/src/protosetup.c
+++ b/src/protosetup.c
@@ -26,7 +26,7 @@ in this Software without prior written authorization from The Open Group.
Author: Ralph Mor, X Consortium
******************************************************************************/
-/* $XFree86: xc/lib/ICE/protosetup.c,v 1.3 2001/12/14 19:53:36 dawes Exp $ */
+/* $XFree86: xc/lib/ICE/protosetup.c,v 1.2 2001/10/28 03:32:28 tsi Exp $ */
#include <X11/ICE/ICElib.h>
#include "ICElibint.h"
diff --git a/src/setauth.c b/src/setauth.c
index 48b4d3a..1811384 100644
--- a/src/setauth.c
+++ b/src/setauth.c
@@ -26,7 +26,7 @@ in this Software without prior written authorization from The Open Group.
Author: Ralph Mor, X Consortium
******************************************************************************/
-/* $XFree86: xc/lib/ICE/setauth.c,v 1.5 2002/05/31 18:45:41 dawes Exp $ */
+/* $XFree86: xc/lib/ICE/setauth.c,v 1.4 2001/12/14 19:53:36 dawes Exp $ */
#include <X11/ICE/ICElib.h>
#include "ICElibint.h"
diff --git a/src/shutdown.c b/src/shutdown.c
index 8b52418..103aa47 100644
--- a/src/shutdown.c
+++ b/src/shutdown.c
@@ -26,7 +26,7 @@ in this Software without prior written authorization from The Open Group.
Author: Ralph Mor, X Consortium
******************************************************************************/
-/* $XFree86: xc/lib/ICE/shutdown.c,v 3.4 2001/12/14 19:53:36 dawes Exp $ */
+/* $XFree86: xc/lib/ICE/shutdown.c,v 3.3 2001/08/01 00:44:37 tsi Exp $ */
#include <X11/ICE/ICElib.h>
#include "ICElibint.h"