From 47ee6f300326f65fe4dfcee5470f1f99018d442a Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Fri, 16 Nov 2012 15:44:45 -0600 Subject: Fix touch warnings (unused variables, failure to reserve space for null terminator). --- toys/posix/touch.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'toys') diff --git a/toys/posix/touch.c b/toys/posix/touch.c index 9b8f7932..30e3748f 100644 --- a/toys/posix/touch.c +++ b/toys/posix/touch.c @@ -46,12 +46,8 @@ int check_date_format(char *date_input) time_t get_time_sec(char *date_input) { int count_date_digit = 0; - char temp_date[12]; - char mm[2]; - char dd[2]; - char hh[2]; - char ss[2]; - char year[4]; + char mm[3]; + char year[5]; time_t time_of_modify; struct tm t_yyyymmddhhss; -- cgit v1.2.3