Browse Source

[156759] dsgw/pb charset conversion problem
Fixed a bug caused by misusing a pointer.

Noriko Hosoi 20 years ago
parent
commit
461363cea7
1 changed files with 3 additions and 3 deletions
  1. 3 3
      ldap/clients/dsgw/cgiutil.c

+ 3 - 3
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;