File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -1169,14 +1169,15 @@ trailing_pad(int *padlen, PrintfTarget *target)
1169
1169
int pg_fputs (const char * s , FILE * stream )
1170
1170
{
1171
1171
PrintfTarget target ;
1172
+
1172
1173
if (stream == NULL )
1173
1174
{
1174
1175
errno = EINVAL ;
1175
1176
return -1 ;
1176
1177
}
1177
1178
target .bufstart = s ;
1178
1179
target .nchars = 0 ;
1179
- target .bufptr = s + strlen (s );
1180
+ target .bufptr = s + strlen (s );
1180
1181
target .bufend = NULL ;
1181
1182
target .failed = false;
1182
1183
target .stream = stream ;
@@ -1187,11 +1188,11 @@ int pg_fputs(const char *s, FILE *stream)
1187
1188
/* replacement to puts function which uses flushBuffer */
1188
1189
int pg_puts (const char * tmps )
1189
1190
{
1191
+ PrintfTarget target ;
1190
1192
char * s = NULL ;
1191
1193
1192
1194
s = (char * )malloc (strlen (tmps ) + 1 );
1193
1195
sprintf (s , "%s\n" , tmps );
1194
- PrintfTarget target ;
1195
1196
target .bufstart = s ;
1196
1197
target .nchars = 0 ;
1197
1198
target .bufptr = s + strlen (s );
You can’t perform that action at this time.
0 commit comments