Diff
Not logged in

Differences From:

File src/encode.c part of check-in [3dcaed8d86] - When accessing a remote repository, if there is a username/password specified as part of the URI, use these to login. by dan on 2007-07-28 07:09:25. Also file src/encode.c part of check-in [3a25b68390] - Only request the password one time on a push or pull. by drh on 2007-07-30 16:35:16. [view]

To:

File src/encode.c part of check-in [d2b4469934] - Append the pathname to the login cookie name so that separate cookies are used for each server. by drh on 2007-11-21 13:52:26. Also file src/encode.c part of check-in [d0305b305a] - Merged mainline into my branch to get the newest application. by aku on 2007-12-05 08:07:46. Also file src/encode.c part of check-in [007d1ce44f] - Rename admin_sql_page.c to admin.c. Refactor the strxform functions into SQL functions. Refactor the db_generic_query_view() routine. Fix multiple security vulnerabilities. Bring the code closer into compliance with style guidelines. by drh on 2008-02-07 15:08:02. [view]

@@ -403,10 +403,10 @@
 */
 int encode16(const unsigned char *pIn, unsigned char *zOut, int N){
   int i;
   for(i=0; i<N; i++){
-    *(zOut++) = zEncode[pIn[0]>>4];
-    *(zOut++) = zEncode[pIn[0]&0xf];
+    *(zOut++) = zEncode[pIn[i]>>4];
+    *(zOut++) = zEncode[pIn[i]&0xf];
   }
   *zOut = 0;
   return 0;
 }