Diff
Not logged in

Differences From:

File src/vfile.c part of check-in [5c74c300b1] - Changes to the checksum verification steps to allow a partial commit of changes after new files are added to the tree. by drh on 2007-08-04 00:38:38. [view]

To:

File src/vfile.c part of check-in [6eca3132fe] - Fix an off-by-one error that can cause a segfault during sync. by drh on 2007-08-09 11:55:52. [view]

@@ -40,9 +40,9 @@
 ** create a phantom record.
 */
 int uuid_to_rid(const char *zUuid, int phantomize){
   int rid, sz;
-  char z[UUID_SIZE];
+  char z[UUID_SIZE+1];
 
   sz = strlen(zUuid);
   if( sz!=UUID_SIZE || !validate16(zUuid, sz) ){
     return 0;