Skip to content

Commit

Permalink
Fix incorrect format string in str_container_impl::dump.
Browse files Browse the repository at this point in the history
  • Loading branch information
Pavel Kovalenko committed Oct 8, 2014
1 parent 91bc173 commit 2aa3eb1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/xrCore/xrstring.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ struct str_container_impl
str_value* value = buffer[i];
while ( value )
{
fprintf (f,"ref[%4d]-len[%3d]-crc[%8X] : %s\n",value->dwReference,value->dwLength,value->dwCRC,value->value);
fprintf (f,"ref[%4u]-len[%3u]-crc[%8X] : %s\n",value->dwReference,value->dwLength,value->dwCRC,value->value);
value = value->next;
}
}
Expand All @@ -108,7 +108,7 @@ struct str_container_impl
string4096 temp;
while ( value )
{
xr_sprintf (temp, sizeof(temp), "ref[%4d]-len[%3d]-crc[%8X] : %s\n", value->dwReference, value->dwLength, value->dwCRC, value->value);
xr_sprintf (temp, sizeof(temp), "ref[%4u]-len[%3u]-crc[%8X] : %s\n", value->dwReference, value->dwLength, value->dwCRC, value->value);
f->w_string (temp);
value = value->next;
}
Expand Down

0 comments on commit 2aa3eb1

Please sign in to comment.