aboutsummaryrefslogtreecommitdiff
path: root/grp/putgrent.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>1999-01-23 22:38:35 +0000
committerUlrich Drepper <drepper@redhat.com>1999-01-23 22:38:35 +0000
commit8ba3c7d939fd02e4bef1f311d941fc04bf5e19e8 (patch)
treee216107fd553bdd08e84315e29e58b628e4c8353 /grp/putgrent.c
parent4caef86ca68a3fea8fab5398bedc5e0e6c0d222b (diff)
downloadglibc-8ba3c7d939fd02e4bef1f311d941fc04bf5e19e8.zip
glibc-8ba3c7d939fd02e4bef1f311d941fc04bf5e19e8.tar.gz
glibc-8ba3c7d939fd02e4bef1f311d941fc04bf5e19e8.tar.bz2
Update.
* grp/putgrent.c (putgrent): Don't insert extra colon. Patch by Michael Schaefer <michael.schaefer@dlr.de>.
Diffstat (limited to 'grp/putgrent.c')
-rw-r--r--grp/putgrent.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/grp/putgrent.c b/grp/putgrent.c
index 7d7732a..a119ebe 100644
--- a/grp/putgrent.c
+++ b/grp/putgrent.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 1991, 1992, 1996, 1998 Free Software Foundation, Inc.
+/* Copyright (C) 1991, 1992, 1996, 1998, 1999 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
@@ -54,7 +54,7 @@ putgrent (gr, stream)
int i;
for (i = 0 ; gr->gr_mem[i] != NULL; i++)
- if (fprintf (stream, "%c%s", i == 0 ? ':' : ',', gr->gr_mem[i]) < 0)
+ if (fprintf (stream, i == 0 ? "%s" : ",%s", gr->gr_mem[i]) < 0)
{
/* What else can we do? */
funlockfile (stream);