summaryrefslogtreecommitdiff
path: root/nis
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2007-07-12 13:29:44 +0000
committerJakub Jelinek <jakub@redhat.com>2007-07-12 13:29:44 +0000
commit13a4ee0bb4ccb6691729bde67233f5ca66209c7c (patch)
tree72d62fed4d091a1f38c021d9c3eab5e50044e8c4 /nis
parent0923a2c896f09795cca4a6d800a336a56b0ee42c (diff)
[BZ #4745]
[BZ #4586] [BZ #4702] [BZ #4525] [BZ #4514] [BZ #4512] Merge selected bugfixes from the trunk.
Diffstat (limited to 'nis')
-rw-r--r--nis/nis_domain_of.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/nis/nis_domain_of.c b/nis/nis_domain_of.c
index 6f41b92bf7..4d6b48640e 100644
--- a/nis/nis_domain_of.c
+++ b/nis/nis_domain_of.c
@@ -32,10 +32,10 @@ __nis_domain_of (const_nis_name name)
{
const_nis_name cptr = strchr (name, '.');
- if (cptr == NULL)
+ if (cptr++ == NULL)
return "";
- if (*++cptr == '\0')
+ if (*cptr == '\0')
return ".";
return cptr;