diff options
author | Bill Meier <wmeier@newsguy.com> | 2008-01-17 21:04:48 +0000 |
---|---|---|
committer | Bill Meier <wmeier@newsguy.com> | 2008-01-17 21:04:48 +0000 |
commit | 83888f9c019e240fd4c9a68a5000076f501719eb (patch) | |
tree | e7b2965d6790d068eff159c2c50a79c423a60c7b /editcap.c | |
parent | 00356bd4c79f430aa0ae8e5b113e0d18b5182aa8 (diff) |
From RD Thrush: Fix for 'editcap relies on gnu extension to strptime(3)'
svn path=/trunk/; revision=24124
Diffstat (limited to 'editcap.c')
-rw-r--r-- | editcap.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -520,7 +520,7 @@ int main(int argc, char *argv[]) memset(&starttm,0,sizeof(struct tm)); - if(!strptime(optarg,"%F %T",&starttm)) { + if(!strptime(optarg,"%Y-%m-%d %T",&starttm)) { fprintf(stderr, "editcap: \"%s\" isn't a valid time format\n\n", optarg); exit(1); } @@ -539,7 +539,7 @@ int main(int argc, char *argv[]) memset(&stoptm,0,sizeof(struct tm)); - if(!strptime(optarg,"%F %T",&stoptm)) { + if(!strptime(optarg,"%Y-%m-%d %T",&stoptm)) { fprintf(stderr, "editcap: \"%s\" isn't a valid time format\n\n", optarg); exit(1); } |