Skip to content
Open
Changes from all commits
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
6 changes: 3 additions & 3 deletions safeclib/snprintf_support.c
Original file line number Diff line number Diff line change
Expand Up @@ -55,13 +55,13 @@ parse_format(const char *format, char pformatList[], unsigned int maxFormats)
break;
}
// check for and skip the optional field width
while ( format[index] != '\0' && format[index] >= '0' && format[index] <= '9') {
while ( format[index] >= '0' && format[index] <= '9') {
index++;
}
// Check for an skip the optional precision
if ( format[index] != '\0' && format[index] == '.') {
if ( format[index] == '.') {
index++; // skip the period
while ( format[index] != '\0' && format[index] >= '0' && format[index] <= '9') {
while ( format[index] >= '0' && format[index] <= '9') {
index++;
}
}
Expand Down