Arthur de Jong

Open Source / Free Software developer

summaryrefslogtreecommitdiffstats
path: root/nslcd-common.h
diff options
context:
space:
mode:
authorArthur de Jong <arthur@arthurdejong.org>2006-11-25 11:55:31 +0100
committerArthur de Jong <arthur@arthurdejong.org>2006-11-25 11:55:31 +0100
commit1d4906c0e367960d35bd688e85b31cb6a376f5bc (patch)
tree191b2b6fc2ff3bd9d14c774b56fb1f4f7806d726 /nslcd-common.h
parenteb3793f2f0de767d8c93d4fb9a0d4282dac2483d (diff)
fix bug that always causes a READ_STRING_ALLOC to read to a variable called name
git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/libnss_ldapd@122 ef36b2f9-881f-0410-afb5-c4e39611909c
Diffstat (limited to 'nslcd-common.h')
-rw-r--r--nslcd-common.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/nslcd-common.h b/nslcd-common.h
index 11fb788..10f73a6 100644
--- a/nslcd-common.h
+++ b/nslcd-common.h
@@ -170,10 +170,10 @@
} /* problem allocating */ \
/* read string from the stream */ \
if (tmpint32>0) \
- { READ(fp,name,(size_t)tmpint32); } \
+ { READ(fp,(field),(size_t)tmpint32); } \
/* null-terminate string */ \
- (name)[tmpint32]='\0'; \
- DEBUG_PRINT("READ_STRING: var="__STRING(field)" string=\"%s\"",(name));
+ (field)[tmpint32]='\0'; \
+ DEBUG_PRINT("READ_STRING: var="__STRING(field)" string=\"%s\"",(field));
/* read an array from a stram and store the length of the
array in num (size for the array is allocated) */