Skip to content

Commit

Permalink
Changed snprintf formatting to satisfy some compilers.
Browse files Browse the repository at this point in the history
Signed-off-by: Peter Ellerington <elleringtonp@gmail.com>
  • Loading branch information
Peter Ellerington committed Jan 25, 2023
1 parent 5dad507 commit 698135e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/testrender/optixraytracer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1072,7 +1072,7 @@ OptixRaytracer::processPrintfBuffer(void* buffer_data, size_t buffer_size)
switch (format[j]) {
case '%':
// seems like a silly to print a '%', but it keeps the logic parallel with the other cases
dst += snprintf(&buffer[dst], BufferSize - dst,
dst += snprintf(&buffer[dst], BufferSize - dst, "%s",
fmt_string.c_str());
format_end_found = true;
break;
Expand Down
2 changes: 1 addition & 1 deletion src/testshade/optixgridrender.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -874,7 +874,7 @@ OptixGridRenderer::processPrintfBuffer(void* buffer_data, size_t buffer_size)
switch (format[j]) {
case '%':
// seems like a silly to print a '%', but it keeps the logic parallel with the other cases
dst += snprintf(&buffer[dst], BufferSize - dst,
dst += snprintf(&buffer[dst], BufferSize - dst, "%s",
fmt_string.c_str());
format_end_found = true;
break;
Expand Down

0 comments on commit 698135e

Please sign in to comment.