Update of /cvsroot/linux-vax/kernel-2.4/arch/vax/boot/tools
In directory usw-pr-cvs1:/tmp/cvs-serv15217/arch/vax/boot/tools
Modified Files:
setcmdline.c
Log Message:
DA: no zero termination on the string means couldn't shorten the command line
Index: setcmdline.c
===================================================================
RCS file: /cvsroot/linux-vax/kernel-2.4/arch/vax/boot/tools/setcmdline.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- setcmdline.c 16 Sep 2001 15:19:27 -0000 1.1
+++ setcmdline.c 15 Apr 2002 22:28:06 -0000 1.2
@@ -41,6 +41,7 @@
printf("\n\nSetting kernel command line to:\n\t%s\n\n",buffer);
write(kern_fd,buffer,strlen(buffer));
+ write(kern_fd,"\0",1);
} else {
lseek(kern_fd,COMMAND_LINE_OFFSET,SEEK_SET);
read(kern_fd,buffer,(COMMAND_LINE_SIZE-1));
|