From b6aae0f38194cd39960a898606ee65d4be93a895 Mon Sep 17 00:00:00 2001 From: Denis Vlasenko Date: Mon, 29 Jan 2007 22:51:25 +0000 Subject: preparatory patch for -Wwrite-strings #2 --- libbb/get_last_path_component.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libbb/get_last_path_component.c') diff --git a/libbb/get_last_path_component.c b/libbb/get_last_path_component.c index 311909726..b7bc0e626 100644 --- a/libbb/get_last_path_component.c +++ b/libbb/get_last_path_component.c @@ -26,7 +26,7 @@ char *bb_get_last_path_component(char *path) if (*first == '/') { last = first; } - last[1] = 0; + last[1] = '\0'; return first; } -- cgit v1.2.3