2010-08-27 Joel Sherrill <joel.sherrill@oarcorp.com>

* libmisc/shell/main_date.c: Use snprintf() not sprintf().
This commit is contained in:
Joel Sherrill
2010-08-27 18:04:28 +00:00
parent f70b79178f
commit 57cdf005bc
2 changed files with 5 additions and 1 deletions

View File

@@ -52,7 +52,7 @@ int rtems_shell_main_date(
struct timespec timesp;
char *result;
sprintf( buf, "%s %s", argv[1], argv[2] );
snprintf( buf, sizeof(buf), "%s %s", argv[1], argv[2] );
result = strptime(
buf,
"%Y-%m-%d %T",