Permalink
Browse files

tested maxlen of /proc/cmdline turns out to 256

  • Loading branch information...
1 parent 4f588b7 commit 4f25bafb7725c87eb56123a2498816858793ebf5 @falconindy committed Apr 21, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 init.c
View
2 init.c
@@ -25,7 +25,7 @@
#define err(...) {fprintf(stderr, "error: " __VA_ARGS__);}
#define die(...) {err(__VA_ARGS__); _exit(1);}
-#define CMDLINE_SIZE 2048 /* from arch/x86/include/asm/setup.h */
+#define CMDLINE_SIZE 257 /* 256 max cmdline len + NULL */
#define TMPFS_FLAGS MS_NOEXEC|MS_NODEV|MS_NOSUID
#define NEWROOT "/new_root"

0 comments on commit 4f25baf

Please sign in to comment.