Fix the hostname part.
1999-08-15 Miguel de Icaza <miguel@gnu.org> * calobj.c (ical_gen_uid): Fix the hostname part. svn path=/trunk/; revision=1116
This commit is contained in:

committed by
Arturo Espinosa

parent
02cae09612
commit
1755ff603b
@ -1,3 +1,7 @@
|
||||
1999-08-15 Miguel de Icaza <miguel@gnu.org>
|
||||
|
||||
* calobj.c (ical_gen_uid): Fix the hostname part.
|
||||
|
||||
1999-08-07 Peter Teichman <pat4@acpub.duke.edu>
|
||||
|
||||
* calendar-pilot-sync.c (sync_pilot): sync correctly for objects
|
||||
|
@ -25,9 +25,9 @@ ical_gen_uid (void)
|
||||
if (!hostname){
|
||||
char buffer [128];
|
||||
|
||||
gethostname (buffer, sizeof (buffer)-1);
|
||||
if (hostname)
|
||||
hostname = g_strdup (hostname);
|
||||
if ((gethostname (buffer, sizeof (buffer)-1) == 0) &&
|
||||
(buffer [0] != 0))
|
||||
hostname = g_strdup (buffer);
|
||||
else
|
||||
hostname = g_strdup ("localhost");
|
||||
}
|
||||
|
@ -25,9 +25,9 @@ ical_gen_uid (void)
|
||||
if (!hostname){
|
||||
char buffer [128];
|
||||
|
||||
gethostname (buffer, sizeof (buffer)-1);
|
||||
if (hostname)
|
||||
hostname = g_strdup (hostname);
|
||||
if ((gethostname (buffer, sizeof (buffer)-1) == 0) &&
|
||||
(buffer [0] != 0))
|
||||
hostname = g_strdup (buffer);
|
||||
else
|
||||
hostname = g_strdup ("localhost");
|
||||
}
|
||||
|
@ -25,9 +25,9 @@ ical_gen_uid (void)
|
||||
if (!hostname){
|
||||
char buffer [128];
|
||||
|
||||
gethostname (buffer, sizeof (buffer)-1);
|
||||
if (hostname)
|
||||
hostname = g_strdup (hostname);
|
||||
if ((gethostname (buffer, sizeof (buffer)-1) == 0) &&
|
||||
(buffer [0] != 0))
|
||||
hostname = g_strdup (buffer);
|
||||
else
|
||||
hostname = g_strdup ("localhost");
|
||||
}
|
||||
|
Reference in New Issue
Block a user