Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit5efaafc

Browse files
committed
Fix snprintf.c for SDK71 support
1 parent40ace7a commit5efaafc

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

‎src/port/snprintf.c

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1169,14 +1169,15 @@ trailing_pad(int *padlen, PrintfTarget *target)
11691169
intpg_fputs(constchar*s,FILE*stream)
11701170
{
11711171
PrintfTargettarget;
1172+
11721173
if (stream==NULL)
11731174
{
11741175
errno=EINVAL;
11751176
return-1;
11761177
}
11771178
target.bufstart=s;
11781179
target.nchars=0;
1179-
target.bufptr=s+strlen(s);
1180+
target.bufptr=s+strlen(s);
11801181
target.bufend=NULL;
11811182
target.failed=false;
11821183
target.stream=stream;
@@ -1187,11 +1188,11 @@ int pg_fputs(const char *s, FILE *stream)
11871188
/* replacement to puts function which uses flushBuffer */
11881189
intpg_puts(constchar*tmps)
11891190
{
1191+
PrintfTargettarget;
11901192
char*s=NULL;
11911193

1192-
s= (char*)malloc(strlen(tmps)+1);
1194+
s= (char*)malloc(strlen(tmps)+1);
11931195
sprintf(s,"%s\n",tmps);
1194-
PrintfTargettarget;
11951196
target.bufstart=s;
11961197
target.nchars=0;
11971198
target.bufptr=s+strlen(s);

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp