fx.serial: update stringstream usage
This commit is contained in:
@@ -130,7 +130,7 @@ void write_tagged_datetime(fx_datetime *data)
|
||||
|
||||
fx_stringstream *new_data = fx_stringstream_create();
|
||||
fx_datetime_to_string(data, FX_DATETIME_FORMAT_RFC3339, new_data);
|
||||
fx_stream_write_cstr(fx_stdout, fx_stringstream_ptr(new_data), NULL);
|
||||
fx_stream_write_cstr(fx_stdout, fx_stringstream_get_cstr(new_data), NULL);
|
||||
|
||||
fx_stream_write_cstr(fx_stdout, "\" }", NULL);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user