Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
balos1 committed Apr 25, 2024
1 parent cd8e4d3 commit 5bd1b09
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/arkode/arkode.c
Original file line number Diff line number Diff line change
Expand Up @@ -3334,7 +3334,7 @@ void arkProcessError(ARKodeMem ark_mem, int error_code, int line,
size_t msglen = vsnprintf(NULL, 0, msgfmt, ap) + 1;
va_end(ap);

char* msg = (char*)malloc(msglen);
char* msg = (char*)malloc(msglen);

va_start(ap, msgfmt);
vsnprintf(msg, msglen, msgfmt, ap);
Expand Down
2 changes: 1 addition & 1 deletion src/cvode/cvode.c
Original file line number Diff line number Diff line change
Expand Up @@ -4833,7 +4833,7 @@ void cvProcessError(CVodeMem cv_mem, int error_code, int line, const char* func,
size_t msglen = vsnprintf(NULL, 0, msgfmt, ap) + 1;
va_end(ap);

char* msg = (char*)malloc(msglen);
char* msg = (char*)malloc(msglen);

va_start(ap, msgfmt);
vsnprintf(msg, msglen, msgfmt, ap);
Expand Down
2 changes: 1 addition & 1 deletion src/cvodes/cvodes.c
Original file line number Diff line number Diff line change
Expand Up @@ -9917,7 +9917,7 @@ void cvProcessError(CVodeMem cv_mem, int error_code, int line, const char* func,
size_t msglen = vsnprintf(NULL, 0, msgfmt, ap) + 1;
va_end(ap);

char* msg = (char*)malloc(msglen);
char* msg = (char*)malloc(msglen);

va_start(ap, msgfmt);
vsnprintf(msg, msglen, msgfmt, ap);
Expand Down
2 changes: 1 addition & 1 deletion src/ida/ida.c
Original file line number Diff line number Diff line change
Expand Up @@ -4001,7 +4001,7 @@ void IDAProcessError(IDAMem IDA_mem, int error_code, int line, const char* func,
size_t msglen = vsnprintf(NULL, 0, msgfmt, ap) + 1;
va_end(ap);

char* msg = (char*)malloc(msglen);
char* msg = (char*)malloc(msglen);

va_start(ap, msgfmt);
vsnprintf(msg, msglen, msgfmt, ap);
Expand Down
2 changes: 1 addition & 1 deletion src/idas/idas.c
Original file line number Diff line number Diff line change
Expand Up @@ -8765,7 +8765,7 @@ void IDAProcessError(IDAMem IDA_mem, int error_code, int line, const char* func,
size_t msglen = vsnprintf(NULL, 0, msgfmt, ap) + 1;
va_end(ap);

char* msg = (char*)malloc(msglen);
char* msg = (char*)malloc(msglen);

va_start(ap, msgfmt);
vsnprintf(msg, msglen, msgfmt, ap);
Expand Down
2 changes: 1 addition & 1 deletion src/kinsol/kinsol.c
Original file line number Diff line number Diff line change
Expand Up @@ -2572,7 +2572,7 @@ void KINProcessError(KINMem kin_mem, int error_code, int line, const char* func,
size_t msglen = vsnprintf(NULL, 0, msgfmt, ap) + 1;
va_end(ap);

char* msg = (char*)malloc(msglen);
char* msg = (char*)malloc(msglen);

va_start(ap, msgfmt);
vsnprintf(msg, msglen, msgfmt, ap);
Expand Down

0 comments on commit 5bd1b09

Please sign in to comment.