patch-2.4.22 linux-2.4.22/arch/mips/kernel/sysmips.c

Next file: linux-2.4.22/arch/mips/kernel/time.c
Previous file: linux-2.4.22/arch/mips/kernel/sysirix.c
Back to the patch index
Back to the overall index

diff -urN linux-2.4.21/arch/mips/kernel/sysmips.c linux-2.4.22/arch/mips/kernel/sysmips.c
@@ -65,7 +65,7 @@
 			return -EFAULT;
 
 		down_write(&uts_sem);
-		strncpy(system_utsname.nodename, name, len);
+		strncpy(system_utsname.nodename, nodename, len);
 		system_utsname.nodename[len] = '\0';
 		up_write(&uts_sem);
 		return 0;

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)