diff --git a/newlib/examples/hello.c b/newlib/examples/hello.c index 99b6b5e4..98aa17d1 100644 --- a/newlib/examples/hello.c +++ b/newlib/examples/hello.c @@ -46,7 +46,7 @@ int main(int argc, char** argv) { char* teststr = malloc(sizeof(char)*100); int testfile = open("/bin/test.txt", O_CREAT | O_EXCL, "wr"); - write(testfile, "hello in new file '/bin/test.txt'", 30); + write(testfile, "hello in new file '/bin/test.txt'", 34); lseek(testfile, 0, SEEK_SET); read(testfile, teststr, 100); close(testfile);