Skip to content

Commit

Permalink
sysstat#174: Support pre C99 in csv_efprintf_s.
Browse files Browse the repository at this point in the history
  • Loading branch information
tst-ppenev committed Feb 28, 2018
1 parent ae455e4 commit b44a56c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion common.c
Original file line number Diff line number Diff line change
Expand Up @@ -1381,7 +1381,10 @@ void csv_efprintf_s(FILE *stream, const char *file_path,

// Write the string to the output file:
efprintf(stream, file_path, "\"");
for (int i = 0; i < formatted_len; ++ i) {

int i;

for (i = 0; i < formatted_len; ++ i) {
// Escape double quotes:
if (formatted_str[i] == '"') {
efprintf(stream, file_path, "\"");
Expand Down

0 comments on commit b44a56c

Please sign in to comment.