# HG changeset patch # User Rob Landley # Date 1353102285 21600 # Node ID 7b316e3c0e11d920cd32d12557d54d84e54cd8d9 # Parent ad6bff0c916926ae91521d3513969e730a2b2221 Fix touch warnings (unused variables, failure to reserve space for null terminator). diff -r ad6bff0c9169 -r 7b316e3c0e11 toys/posix/touch.c --- a/toys/posix/touch.c Fri Nov 16 15:36:01 2012 -0600 +++ b/toys/posix/touch.c Fri Nov 16 15:44:45 2012 -0600 @@ -46,12 +46,8 @@ 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;