diff options
author | Noriko Hosoi <nhosoi@redhat.com> | 2005-05-04 16:37:27 +0000 |
---|---|---|
committer | Noriko Hosoi <nhosoi@redhat.com> | 2005-05-04 16:37:27 +0000 |
commit | 461363cea7bfd6c0e99040375768d5da66e6c44d (patch) | |
tree | 2478ce8a765b9918e128fd3b1d7a9682f5bff074 | |
parent | fc097ca1d263d31d68f63a4135d27ebcaff919ed (diff) | |
download | ds-461363cea7bfd6c0e99040375768d5da66e6c44d.tar.gz ds-461363cea7bfd6c0e99040375768d5da66e6c44d.tar.xz ds-461363cea7bfd6c0e99040375768d5da66e6c44d.zip |
[156759] dsgw/pb charset conversion problem
Fixed a bug caused by misusing a pointer.
-rw-r--r-- | ldap/clients/dsgw/cgiutil.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ldap/clients/dsgw/cgiutil.c b/ldap/clients/dsgw/cgiutil.c index 2d021648..85437cf9 100644 --- a/ldap/clients/dsgw/cgiutil.c +++ b/ldap/clients/dsgw/cgiutil.c @@ -516,18 +516,18 @@ dsgw_convert( * the outer while loop will break because !U_SUCCESS */ } - } while(U_SUCCESS(*pErrorCode) && source != sourceLimit); + } while(U_SUCCESS(*pErrorCode) && mySource != sourceLimit); *nSource = mySource - source; /* n chars read from source */ *nDest = myDest - *dest; /* n chars written to dest */ - if (U_SUCCESS(*pErrorCode) && source == sourceLimit) { + if (U_SUCCESS(*pErrorCode) && mySource == sourceLimit) { /* reset internal converter */ ucnv_reset(utf8Converter); return 1; /* converted entire string */ } - if (source != sourceLimit) { + if (mySource != sourceLimit) { /* not done with conversion yet */ /* no reset here - preserve state for next call */ return 0; |