Skip to content

Commit

Permalink
fix vic_log
Browse files Browse the repository at this point in the history
  • Loading branch information
kongdd committed Feb 16, 2023
1 parent e11d431 commit 7c163d1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/R-CMD-check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,4 +48,4 @@ jobs:
- uses: r-lib/actions/check-r-package@v2
with:
upload-snapshots: false
error-on: '"error"'
# error-on: '"error"'
2 changes: 1 addition & 1 deletion src/vic/drivers/shared_all/src/vic_log.c
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ get_current_datetime(char *cdt)
log_err("Something went wrong converting the current time info to ymd");
}

snprintf(cdt, 254, "%s-%05d", ymd, seconds_since_midnight);
snprintf(cdt, MAXSTRING+6, "%s-%05d", ymd, seconds_since_midnight);
}

/******************************************************************************
Expand Down

0 comments on commit 7c163d1

Please sign in to comment.