Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
GNOME
Files
Commits
071bafd2
Commit
071bafd2
authored
Feb 09, 2000
by
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
Changes
3
Hide whitespace changes
Inline
Side-by-side
libnautilus-extensions/nautilus-directory.c
View file @
071bafd2
...
...
@@ -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'
;
...
...
libnautilus-private/nautilus-directory.c
View file @
071bafd2
...
...
@@ -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'
;
...
...
libnautilus/nautilus-directory.c
View file @
071bafd2
...
...
@@ -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'
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment