Roland Illig
a9f9db7b6b
* direntry.c: Added const qualifier to function declarations and
...
variables. Introduced local modifiable strings where necessary.
* xdirentry.h: likewise.
2004-09-19 16:07:17 +00:00
Roland Illig
9c334b4dd8
* achown.c: Added const qualifiers and const_cast.
...
* background.c: likewise.
* boxes.c: likewise.
* file.c: likewise.
* filegui.c: likewise.
* find.c: likewise.
* hotlist.c: likewise.
* info.c: likewise.
* layout.c: likewise.
* myslang.h: likewise.
* option.c: likewise.
* user.c: likewise.
* util.c: likewise.
* utilunix.c: likewise.
* view.c: likewise.
* widget.c: likewise.
2004-09-19 15:55:58 +00:00
Roland Illig
5418fdc3a8
* HACKING: added explanation for const_cast.
2004-09-19 15:45:54 +00:00
Roland Illig
d5f70f2ab8
* editcmd.c (edit_replace_cmd): Added const qualifier.
...
* editwidget.c (edit_my_define): likewise.
2004-09-19 15:40:09 +00:00
Roland Illig
07d52482c6
* util.c (strip_home_and_password): Fixed possible buffer overflow.
2004-09-19 12:45:43 +00:00
Roland Illig
2f059780af
* find.c: Applied patch to make the find dialog more responsive
...
while scanning through large files.
From Jindrich Makovicka <makovick kmlinux.fjfi.cvut.cz>
2004-09-19 11:32:30 +00:00
Roland Illig
fd4b2d7d35
* view.c (view_handle_key): Fixed invalid-offset-bug when handling
...
ctrl-e in hex mode.
2004-09-18 22:00:55 +00:00
Roland Illig
8335c0fab3
* smbfs.c (smbfs_init): Added a cast to avoid compiler warning.
2004-09-18 14:41:42 +00:00
Roland Illig
2994c738d0
* help.c (search_string): Fixed a warning about a const qualifier.
...
A local copy of the string is used for modifying.
* menu.h: Removed the const qualifier from Menu.name and
Menu.help_node as they are freed in destroy_menu.
* menu.c (destroy_menu): Removed the (now unnecessary) casts.
* popt.h: Removed a const qualifier to avoid compiler warnings.
* profile.c (get_profile_string): Added const qualifiers to
avoid compiler warnings. (GetSetProfile): likewise.
(GetSetProfileChar): likewise.
* profile.h (get_profile_string): likewise.
* win.c (check_movement_keys): likewise.
* win.h (check_movement_keys): likewise.
2004-09-18 14:30:58 +00:00
Andrew V. Samoilov
312da833ff
* extfs.c (extfs_open_archive): Fixes bug in extfs, which showed
...
'Inconsistent extfs archive' on small archives and diffs.
QNX 6.x (QNX Neutrino) specific
2004-09-17 11:44:43 +00:00
Andrew V. Samoilov
05cea9cabf
Typos
2004-09-17 11:43:02 +00:00
Andrew V. Samoilov
28c5119bd1
* ext.c (get_file_type_local): Fixes <zombies> in
...
QNX 6.x (QNX Neutrino) when guessing file type before
viewing file.
2004-09-17 11:40:30 +00:00
Andrew V. Samoilov
c35092fabd
* makefile.syntax.diff: adds define and ended keyrowrds
...
* perl.syntax.diff: adds break keyword
2004-09-17 09:56:47 +00:00
Andrew V. Samoilov
ed53105975
Fix const. Partially revert previous patch.
2004-09-17 08:46:53 +00:00
Andrew V. Samoilov
fade042845
Typos
2004-09-17 08:32:59 +00:00
Andrew V. Samoilov
80ad2213bb
* wtools.h (QuickWidget): Make text const.
...
* wtools.c (fg_input_dialog_help): Fix warning.
2004-09-17 03:19:21 +00:00
Andrew V. Samoilov
32cdf184ba
* editcmd.c (edit_replace_prompt) [HAVE_CHARSET]: Warning hack.
2004-09-17 03:07:37 +00:00
Andrew V. Samoilov
0b032ef66f
* hotlist.c (add_new_entry_input): Fix warnings.
2004-09-17 03:02:18 +00:00
Andrew V. Samoilov
3653343e4d
Done: Crash when opening tar archives with links on the top level pointing inside a directory.
...
Done: Hard links in cpio archives have 0 length.
2004-09-15 10:14:09 +00:00
Andrew V. Samoilov
0e7b3d6ac6
* utilunix.c (tilde_expand): Fix extra slash in result from
...
tilde_expand() for ~<user>/dir.
2004-09-14 17:39:12 +00:00
Andrew V. Samoilov
8919656440
* utilunix.c (tilde_expand): Fix extra slash in result from tilde_expand() for ~<user>/dir.
2004-09-14 17:23:16 +00:00
Andrew V. Samoilov
ee2e35afb4
* key.c (get_modifier): Recognize keyboard modifiers on Cygwin.
2004-09-14 17:18:25 +00:00
Andrew V. Samoilov
e3698948a4
* execute.c (toggle_panels): Fix error. show_output_starts_shell=1
...
is not working
* cmd.c (view_other_cmd): Likewise.
2004-09-12 10:52:17 +00:00
Andrew V. Samoilov
259bc3957b
Typos
2004-09-10 09:53:15 +00:00
Andrew V. Samoilov
7ff781db70
* view.c (get_byte): Fix avoid dying if file is too large
...
to fit into memory.
(load_view_file): Fix avoid mmaping just part of a >=4GB file
on 32-bit arches.
* setup.c (load_keys_from_section): Handle "copy".
2004-09-10 09:25:20 +00:00
Andrew V. Samoilov
b01dc1030f
* lib/mc.lib: Add gnome, rxvt and xterm-new terminals.
2004-09-10 09:23:43 +00:00
Andrew V. Samoilov
b6ad379291
* view.c (get_byte): Fix avoid dying if file is too large
...
to fit into memory.
(load_view_file): Fix avoid mmaping just part of a >=4GB file
on 32-bit arches.
2004-09-10 09:14:55 +00:00
Andrew V. Samoilov
221bb320b8
* syntax/php.syntax: Upgrade php.syntax file.
2004-09-09 21:29:51 +00:00
Andrew V. Samoilov
4d149bb08e
* fish_file_store): Call get_interrupt instead of testing
...
whether got_interrupt is non-NULL (it always is).
2004-09-09 13:26:02 +00:00
Andrew V. Samoilov
bc432cb01e
* configure.ac: grantpt is only available with -D_XOPEN_SOURCE
...
or -D_GNU_SOURCE under Linux.
2004-09-03 22:37:52 +00:00
Andrew V. Samoilov
9e27c8703a
* info.c (info_show_info): don't truncate block counts to 32 bits
...
on 64-bit platforms
* util.c (get_current_wd): We know there is just one '\0' byte
in p, at p[len - 1].
2004-09-03 22:32:41 +00:00
Andrew V. Samoilov
2e0140f5b6
* az.po: don't truncate block counts to 32 bits
...
on 64-bit platforms
* be.po: Likewise.
* bg.po: Likewise.
* ca.po: Likewise.
* cs.po: Likewise.
* da.po: Likewise.
* de.po: Likewise.
* el.po: Likewise.
* es.po: Likewise.
* eu.po: Likewise.
* fi.po: Likewise.
* fr.po: Likewise.
* hu.po: Likewise.
* it.po: Likewise.
* ja.po: Likewise.
* ko.po: Likewise.
* lt.po: Likewise.
* lv.po: Likewise.
* mn.po: Likewise.
* nl.po: Likewise.
* no.po: Likewise.
* pl.po: Likewise.
* pt.po: Likewise.
* pt_BR.po: Likewise.
* ro.po: Likewise.
* ru.po: Likewise.
* sk.po: Likewise.
* sl.po: Likewise.
* sr.po: Likewise.
* sv.po: Likewise.
* ta.po: Likewise.
* tr.po: Likewise.
* uk.po: Likewise.
* wa.po: Likewise.
* zh_CN.po: Likewise.
* zh_TW.po: Likewise.
2004-09-03 22:30:55 +00:00
Andrew V. Samoilov
ef67afe62d
* sltermin.c (): Avoid strncpy, home_ti is 1K long and
...
nobody really needs it whole cleared
2004-09-03 22:08:20 +00:00
Andrew V. Samoilov
7c9f703060
* util.c (get_current_wd): We know there is just one '\0' byte
...
in p, at p[len - 1].
2004-09-03 22:05:13 +00:00
Andrew V. Samoilov
2253379eb8
* subshell.c (exit_subshell): Prevent unwanted reuse of freed
...
pty_buffer.
* complete.c (variable_completion_function): strncpy()->memcpy()
changes are because we know there is no '\0' among the first
length bytes.
(insert_text): Likewise.
(command_completion_function): Avoid memory leaks.
(filename_completion_function): g_free handles NULL argument too,
no need for the comparison.
(try_complete): Likewise.
(command_completion_function): Likewise.
(free_completions): Likewise.
* widget.c (gauge_callback): Fix for 64-bit arches (%*s len must
be int, %3d takes int.
(copy_region): g_free handles NULL argument too, no need for
the comparison.
(kill_line): Likewise.
* find.c (do_search): Likewise.
(init_find_vars): Likewise.
(do_find): Likewise.
2004-09-03 22:00:27 +00:00
Andrew V. Samoilov
e5f21875a3
* HACKING: Add to section "Programming Tips" g_free tip.
2004-09-03 21:39:32 +00:00
Andrew V. Samoilov
c9f834b501
* vfs.c (vfs_cmp_handle): Fixing warnings on on 64-bit
...
platforms.
(vfs_op):Likewise.
(vfs_info):Likewise.
(vfs_free_handle):Likewise.
* extfs/rpm (mcrpmfs_run): Quote parameters to calls
to system/open that spawn a shell.
* direntry.c (vfs_s_find_entry_tree): Make "size"
size_t.
2004-09-03 21:23:05 +00:00
Pavel Roskin
d448a65825
Don't exclude *.po from diff. This is needed to have newly added *.po files
...
in the patch.
2004-09-03 07:16:57 +00:00
Andrew V. Samoilov
0758929ef1
* editwidget.c (edit_adjust_size): Fix warnings.
...
(edit_dialog_callback): Likewise.
edit.c (menu_save_mode_cmd): Likewise.
2004-09-02 20:36:17 +00:00
Andrew V. Samoilov
d3e4fcb5b0
* menu.c (destroy_menu): Fix warnings.
...
* view.c (view_adjust_size): Likewise.
* widget.c (find_buttonbar): Likewise.
2004-09-02 20:14:12 +00:00
Roland Illig
3fe957aef4
* Makefile.am (man2hlp): Added source file glibcompat.c for
...
glib-1.2 compatibility.
2004-09-02 15:03:48 +00:00
Roland Illig
207711e166
Typo.
2004-09-02 14:59:12 +00:00
Roland Illig
b5ef1bd79a
* HACKING: Added a section "Programming Tips" which lists mistakes
...
that have been done once and should never be repeated.
2004-09-02 14:48:21 +00:00
Andrew V. Samoilov
d99d02c743
* mcfs.c (mcfs_readlink): Revert last change: readlink does not
...
append a NUL character to buf. Fix compilation.
2004-09-02 14:34:58 +00:00
Roland Illig
f30fc0163b
* man2hlp.c (handle_link): Added header "glib-compat.h" because
...
glib-1.2 does not know g_strlcpy.
2004-09-02 14:32:53 +00:00
Andrew V. Samoilov
fc3bf048e9
* local.c (local_readlink): Make "size" size_t.
...
* direntry.c (vfs_s_readlink): Revert last changes. Make "size"
size_t.
* sfs.c (sfs_readlink): Reformat function.
* smbfs.c (smbfs_readlink): Reformat function.
2004-09-02 14:12:21 +00:00
Andrew V. Samoilov
e04694309c
* tar.c (tar_read_header): Fix missed *.
...
* extfs.c (extfs_readlink): Revert last change: readlink does not
append a NUL character to buf.
* ftpfs.c: Warning fix.
* vfs-impl.h (struct vfs_class.readlink): Make "size" size_t.
Adjust all callers.
2004-09-02 13:57:59 +00:00
Roland Illig
c44a4a4c31
* mcfs.c (mcfs_readlink): Fixed syntax error (usage of
...
undeclared variable). Simplified string copying.
2004-09-02 13:26:28 +00:00
Roland Illig
68fa8e1cd8
* color.c (try_alloc_color_pair (ncurses)): Added const qualifier
...
to the arguments.
2004-09-02 12:51:09 +00:00
Roland Illig
38257a486a
* man2hlp.c (handle_link): Reverted the last change because
...
glib-1.2 does not know g_strlcpy.
2004-09-02 12:30:28 +00:00