Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion blitz/array/fastiter.h
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ class FastArrayIteratorBase {
str += ",";

char tmpBuf[10];
sprintf(tmpBuf, "%d", N_rank);
snprintf(tmpBuf, 10, "%d", N_rank);
Comment thread
bdcbqa314159 marked this conversation as resolved.
Outdated

str += tmpBuf;
str += ">";
Expand Down
4 changes: 2 additions & 2 deletions blitz/tm2fastiter.h
Original file line number Diff line number Diff line change
Expand Up @@ -328,11 +328,11 @@ class FastTM2IteratorBase {
str += ",";

char tmpBuf[10];
sprintf(tmpBuf, "%d", N_rows);
snprintf(tmpBuf, 10, "%d", N_rows);

str += tmpBuf;
str += ",";
sprintf(tmpBuf, "%d", N_columns);
snprintf(tmpBuf, 10, "%d", N_columns);

str += tmpBuf;
str += ">";
Expand Down
2 changes: 1 addition & 1 deletion blitz/tv2fastiter.h
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,7 @@ class FastTV2IteratorBase {
str += ",";

char tmpBuf[10];
sprintf(tmpBuf, "%d", N_length);
snprintf(tmpBuf, 10, "%d", N_length);

str += tmpBuf;
str += ">";
Expand Down