mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-01-27 06:35:22 +00:00
Merge remote-tracking branch 'public/pr/1692' into development
This commit is contained in:
commit
0b11e75802
@ -66,7 +66,7 @@ int main( int argc, char** argv )
|
|||||||
char buf[BUFFER_LEN];
|
char buf[BUFFER_LEN];
|
||||||
char *p = buf;
|
char *p = buf;
|
||||||
char *end = p + BUFFER_LEN;
|
char *end = p + BUFFER_LEN;
|
||||||
char c;
|
int c;
|
||||||
|
|
||||||
if( argc != 2 )
|
if( argc != 2 )
|
||||||
{
|
{
|
||||||
@ -83,7 +83,7 @@ int main( int argc, char** argv )
|
|||||||
}
|
}
|
||||||
|
|
||||||
while( ( c = fgetc( fp ) ) != EOF && p < end - 1 )
|
while( ( c = fgetc( fp ) ) != EOF && p < end - 1 )
|
||||||
*p++ = c;
|
*p++ = (char)c;
|
||||||
*p = '\0';
|
*p = '\0';
|
||||||
|
|
||||||
if( p - buf != 0 )
|
if( p - buf != 0 )
|
||||||
|
Loading…
x
Reference in New Issue
Block a user