From 27da707d06430709a6d219a34758158f66235c50 Mon Sep 17 00:00:00 2001 From: Denis Vlasenko Date: Tue, 17 Jul 2007 23:18:26 +0000 Subject: vi: s/argv[0]/applet_name/ --- editors/vi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'editors') 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); } -- cgit v1.2.3