
Fix the string length in samples/full.c.
Thanks to Shehjar Tikoo.

---

 cur-root/samples/full.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff -puN samples/full.c~samples_string samples/full.c
--- cur/samples/full.c~samples_string	2004-09-17 10:22:40.906958816 -0300
+++ cur-root/samples/full.c	2004-09-17 10:27:18.066824112 -0300
@@ -7,7 +7,7 @@
 #include <libjio.h>
 
 #define FILENAME "test1"
-#define TEXT "Hello world!"
+#define TEXT "Hello world!\n"
 
 int main(void)
 {
@@ -30,14 +30,14 @@ int main(void)
 	/* write two "Hello world"s next to each other */
 	jtrans_init(&file, &trans);
 	jtrans_add(&trans, TEXT, strlen(TEXT), 0);
-	jtrans_add(&trans, TEXT, strlen(TEXT), strlen(TEXT) - 1);
+	jtrans_add(&trans, TEXT, strlen(TEXT), strlen(TEXT));
 	r = jtrans_commit(&trans);
 	if (r < 0) {
 		perror("jtrans_commit");
 		return 1;
 	}
 
-	/* at this point the file has "Hello world!Hello world!" */
+	/* at this point the file has "Hello world!\nHello world!\n" */
 
 	/* now we rollback */
 	r = jtrans_rollback(&trans);
_

