Commit 071bafd2 authored by Elliot Lee's avatar Elliot Lee
Browse files

Add assert to try and catch the 'man:ls' bug...



Add assert to try and catch the 'man:ls' bug...
parent 639b6426
......@@ -297,6 +297,7 @@ nautilus_directory_try_to_read_metafile (NautilusDirectory *directory, GnomeVFSU
if (result == GNOME_VFS_OK) {
char *buffer;
g_assert(size < 20480);
buffer = g_alloca(size);
result = gnome_vfs_read (metafile_handle, buffer, size, &actual_size);
buffer[size] = '\0';
......
......@@ -297,6 +297,7 @@ nautilus_directory_try_to_read_metafile (NautilusDirectory *directory, GnomeVFSU
if (result == GNOME_VFS_OK) {
char *buffer;
g_assert(size < 20480);
buffer = g_alloca(size);
result = gnome_vfs_read (metafile_handle, buffer, size, &actual_size);
buffer[size] = '\0';
......
......@@ -297,6 +297,7 @@ nautilus_directory_try_to_read_metafile (NautilusDirectory *directory, GnomeVFSU
if (result == GNOME_VFS_OK) {
char *buffer;
g_assert(size < 20480);
buffer = g_alloca(size);
result = gnome_vfs_read (metafile_handle, buffer, size, &actual_size);
buffer[size] = '\0';
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment