diff options
author | José Alburquerque <jaalburqu@svn.gnome.org> | 2009-07-27 11:26:35 -0400 |
---|---|---|
committer | José Alburquerque <jaalburqu@svn.gnome.org> | 2009-07-27 11:26:35 -0400 |
commit | be416f1881aa4a3d0d8be89413c7a5eeb2c83db2 (patch) | |
tree | c7f28b7d1b938a25024c06578ad32e0801fd9365 /gio/src/memoryinputstream.ccg | |
parent | c92976fc5890d710981262179a0b62b5b9eb23ca (diff) | |
download | glibmm-be416f1881aa4a3d0d8be89413c7a5eeb2c83db2.tar.gz |
Correct the if condition in Gio::MemoryInputStream::add_data().
Diffstat (limited to 'gio/src/memoryinputstream.ccg')
-rw-r--r-- | gio/src/memoryinputstream.ccg | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gio/src/memoryinputstream.ccg b/gio/src/memoryinputstream.ccg index 00d8bf15..7f6aaf8a 100644 --- a/gio/src/memoryinputstream.ccg +++ b/gio/src/memoryinputstream.ccg @@ -34,7 +34,7 @@ void MemoryInputStream::add_data(const void* data, gssize len) char *data_copy = 0; // copy the data so that the caller doesn't need to keep the data alive - if (len > 0) + if (len < 0) data_copy = g_strdup (static_cast<const gchar*>(data)); else data_copy = g_strndup (static_cast<const gchar*>(data), len); |