aboutsummaryrefslogtreecommitdiff
path: root/editors
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2007-07-17 23:18:26 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2007-07-17 23:18:26 +0000
commit27da707d06430709a6d219a34758158f66235c50 (patch)
treeae1e30fec147c5462c8db7a228a79129bfd3608b /editors
parenteaabf0675fe1b5797e094f4662c23323eb96d42e (diff)
downloadbusybox-27da707d06430709a6d219a34758158f66235c50.tar.gz
vi: s/argv[0]/applet_name/
Diffstat (limited to 'editors')
-rw-r--r--editors/vi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/editors/vi.c b/editors/vi.c
index 2abaf88b8..31bc25556 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);
}