summaryrefslogtreecommitdiff
path: root/nuttx/examples/ostest
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2007-03-04 15:23:22 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2007-03-04 15:23:22 +0000
commit3b23ee2703a28a1b46bbd3eb4835b05ae321de29 (patch)
tree08c2619903b1002ca7f846dbcf5258e4f7f1a964 /nuttx/examples/ostest
parent6f275ae53307d29e22fde024a6479f80e60baf41 (diff)
downloadpx4-nuttx-3b23ee2703a28a1b46bbd3eb4835b05ae321de29.tar.gz
px4-nuttx-3b23ee2703a28a1b46bbd3eb4835b05ae321de29.tar.bz2
px4-nuttx-3b23ee2703a28a1b46bbd3eb4835b05ae321de29.zip
Add capability to manager memory in discontiguous regions.
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@35 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/examples/ostest')
-rw-r--r--nuttx/examples/ostest/main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/nuttx/examples/ostest/main.c b/nuttx/examples/ostest/main.c
index 8e09230f5..4e360e6b5 100644
--- a/nuttx/examples/ostest/main.c
+++ b/nuttx/examples/ostest/main.c
@@ -178,12 +178,12 @@ int user_start(int parm1, int parm2, int parm3, int parm4)
/* Verify that we can communicate */
#if CONFIG_NFILE_DESCRIPTORS > 0
- write(1, write_data1, sizeof(write_data1));
+ write(1, write_data1, sizeof(write_data1)-1);
#endif
printf("user_start: Standard I/O Check: printf\n");
#if CONFIG_NFILE_DESCRIPTORS > 1
- write(2, write_data2, sizeof(write_data2));
+ write(2, write_data2, sizeof(write_data2)-1);
#endif
#if CONFIG_NFILE_STREAMS > 0
fprintf(stderr, "user_start: Standard I/O Check: fprintf to stderr\n");