From 499f65fb98a8258f8704b52efb3a99da0c82f785 Mon Sep 17 00:00:00 2001 From: Erik Andersen Date: Tue, 16 May 2000 20:07:38 +0000 Subject: Some updates for better portability. -Erik --- coreutils/date.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'coreutils') diff --git a/coreutils/date.c b/coreutils/date.c index dd054be66..67d61a510 100644 --- a/coreutils/date.c +++ b/coreutils/date.c @@ -181,7 +181,7 @@ int date_main(int argc, char **argv) set_time = 1; if (date_str != NULL) usage(date_usage); - date_str = optarg; + date_str = *argv; break; case 'u': utc = 1; @@ -192,7 +192,7 @@ int date_main(int argc, char **argv) use_arg = 1; if (date_str != NULL) usage(date_usage); - date_str = optarg; + date_str = *argv; break; case '-': usage(date_usage); -- cgit v1.2.3