Skip to content

Commit

Permalink
ws: Fix use of g_string_erase() on arm7hl
Browse files Browse the repository at this point in the history
It seems like we need this in order to pass build on Fedora 23 arm7hl.
Not sure what the deal is exactly, but it's really hard to debug,
and this is equivalent to the previous code, and makes it work.

Closes #3249

Reviewed-by: Dominik Perpeet <dperpeet@redhat.com>
  • Loading branch information
stefwalter authored and dperpeet committed Nov 27, 2015
1 parent d40a222 commit 333953b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ws/cockpitsshtransport.c
Expand Up @@ -1109,7 +1109,7 @@ drain_error_buffer (CockpitSshTransport *self)
{
if (len > 0)
g_printerr ("%s", data);
g_string_erase (self->errbuf, 0, -1);
g_string_erase (self->errbuf, 0, self->errbuf->len);
pos = NULL;
}
else
Expand Down

0 comments on commit 333953b

Please sign in to comment.