summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenis Vlasenko2007-07-17 23:18:26 +0000
committerDenis Vlasenko2007-07-17 23:18:26 +0000
commit27da707d06430709a6d219a34758158f66235c50 (patch)
treeae1e30fec147c5462c8db7a228a79129bfd3608b
parenteaabf0675fe1b5797e094f4662c23323eb96d42e (diff)
downloadbusybox-27da707d06430709a6d219a34758158f66235c50.zip
busybox-27da707d06430709a6d219a34758158f66235c50.tar.gz
vi: s/argv[0]/applet_name/
-rw-r--r--editors/vi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/editors/vi.c b/editors/vi.c
index 2abaf88..31bc255 100644
--- a/editors/vi.c
+++ b/editors/vi.c
@@ -330,7 +330,7 @@ int vi_main(int argc, char **argv)
last_status_cksum = 0;
text = NULL;
- if (ENABLE_FEATURE_VI_READONLY && strncmp(argv[0], "view", 4) == 0) {
+ if (ENABLE_FEATURE_VI_READONLY && strncmp(appliet_name, "view", 4) == 0) {
SET_READONLY_MODE(readonly_mode);
}