From 1d4906c0e367960d35bd688e85b31cb6a376f5bc Mon Sep 17 00:00:00 2001 From: Arthur de Jong Date: Sat, 25 Nov 2006 10:55:31 +0000 Subject: 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 --- nslcd-common.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'nslcd-common.h') 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) */ -- cgit v1.2.3