The contents of an unitialized automatic array are undefined, so start
copying string to it with strcpy() not strcat().
diff testcases/kernel/syscalls/lchown/lchown02.c
--- a/testcases/kernel/syscalls/lchown/lchown02.c Mon Sep 13 14:51:41
2010 -0400
+++ b/testcases/kernel/syscalls/lchown/lchown02.c Mon Sep 13 15:59:04
2010 -0400
@@ -343,7 +343,7 @@
strcat(Path_name, "/" TEST_FILE1);
/* Get the command name to be executed as setuid to root */
- strcat((char *)Cmd_buffer, main_test_dir);
+ strcpy((char *)Cmd_buffer, main_test_dir);
strcat((char *)Cmd_buffer, (const char *)"/create_link ");
strcat((char *)Cmd_buffer, Path_name);
--
Scott Romanowski------------------------------------------------------------------------------
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing
http://p.sf.net/sfu/novell-sfdev2dev
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list