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
Andrew V. Samoilov
64b5b8b9ee
uzip.in (mczipfs_list): Add support for negative
...
compression ratio in archive listing.
2004-09-02 00:16:33 +00:00
Andrew V. Samoilov
ce4e912cbf
* extfs/uzip.in (mczipfs_list): Add support for negative
...
compression ratio in archive listing.
2004-09-02 00:15:59 +00:00
Andrew V. Samoilov
81ce34aa3f
Done: Need a separate color for hotkeys in red dialogs.
2004-09-02 00:10:25 +00:00
Andrew V. Samoilov
15c6e5cae6
* direntry.c (vfs_s_readlink): Use g_strlcpy instead strncpy.
...
* ftpfs.c (ftpfs_get_reply): Use g_strlcpy instead strncpy.
* extfs.c (extfs_readlink): Fix return value. Use g_strlcpy
instead strncpy.
* mcfs.c (mcfs_readlink): Fix return value. Use g_strlcpy
instead strncpy.
* tar.c (tar_read_header): Add additional check for consistency.
Fix memory leak.
* cpio.c (cpio_defer_find): Remove recursion.
(cpio_free_archive): Fix memory leak.
(cpio_read_bin_head): Use union for simplicity using of header
structure. Add additional check for consistency.
(cpio_read_oldc_head): Add additional check for consistency.
2004-09-02 00:09:02 +00:00
Andrew V. Samoilov
1b80f9ceac
* complete.c (completion_matches): Use more suitable function
...
g_strndup(), instead sequence g_malloc(), strncpy(),
name[len] = '\0'
* widget.c (copy_region): Likewise. (delete_region): Use
memmove() instead strcpy().
* user.c (debug_out): Eliminate buffer array.
2004-09-01 23:25:21 +00:00
Andrew V. Samoilov
f379b30232
* editcmd.c (edit_save_as_cmd): Add hotkey to dialog.
...
(edit_save_confirm_cmd): Likewise. (edit_new_cmd): Likewise.
(edit_load_cmd): Likewise. (edit_block_move_cmd): Likewise.
(edit_block_delete): Likewise. (edit_ok_to_exit): Likewise.
2004-09-01 22:40:45 +00:00
Andrew V. Samoilov
f27d0e157f
* color.c (load_dialog_colors): Make a separate color for
...
hotkeys in red dialogs.
* color.h: Likewise.
* view.c (view_ok_to_quit): Add hotkey to dialog.
2004-09-01 22:33:43 +00:00
Andrew V. Samoilov
71ffc327b5
* fish.c (fish_get_reply): Use g_strlcpy instead
...
sequence strncpy(), name[len] = '\0'
* vfs.c (mc_get_current_wd): Likewise.
2004-09-01 18:39:48 +00:00
Andrew V. Samoilov
83de09639c
* syntax.c(this_try_alloc_color_pair): Use g_strlcpy instead
...
sequence strncpy(), name[len] = '\0'
(edit_read_syntax_rules):Likewise.
2004-09-01 18:37:14 +00:00
Andrew V. Samoilov
de59cf86c4
* user.c (check_format_var): Use more suitable function
...
g_strndup, instead sequence g_malloc(), strncpy(), name[len] = '\0'
* man2hlp.c (handle_link): Use g_strlcpy instead sequence
strncpy(), name[len] = '\0'
* profile.c (GetSetProfile): Likewise.
* wtools.c (fg_input_dialog_help): Likewise.
2004-09-01 18:31:24 +00:00
Andrew V. Samoilov
03ddc6c8e9
* wtools.h: Fix warnings.
...
* selcodepage.c (select_charset): Likewise.
* boxes.c (display_bits_box): Likewise.
2004-09-01 17:46:53 +00:00
Andrew V. Samoilov
facaac9889
* color.c (mc_init_pair): Use cast to avoid warning.
...
* screen.c (display_mini_info): Likewise.
* slint.c (do_define_key): Likewise.
* tree.c (tree_show_mini_info): Likewise. (show_tree):Likewise.
* view.c (view_status): Likewise.
2004-08-31 23:34:18 +00:00
Andrew V. Samoilov
784158a520
E-mail fixes
2004-08-31 14:16:16 +00:00
Andrew V. Samoilov
b93c90db4e
* include/slang.h: Revert last changes - it breaks compiling
...
* sldisply.c: Likewise.
* slerr.c: Likewise.
* slsmg.c: Likewise.
* sltermin.c: Likewise.
2004-08-31 06:44:20 +00:00
Andrew V. Samoilov
0bc44d553c
* extfs.c (struct inode): Use off_t for size.
2004-08-30 18:38:21 +00:00
Andrew V. Samoilov
562577c0d4
Use atoll()/atof() instead of atol() for st_size to show file sizes > 2G.
2004-08-30 18:36:58 +00:00
Andrew V. Samoilov
d16aa745e8
* utilvfs.c (vfs_parse_ls_lga): Use atoll()/atof() instead of atol()
...
for st_size to show file sizes > 2G.
* fish.c (fish_dir_load): Likewise.
* extfs.c (struct inode): Use off_t for size.
2004-08-30 18:36:22 +00:00
Roland Illig
bdd4ab2ae5
* m4/ri-gcc-warnings.m4: Now handles only the last --enable or
...
--disable option. Before, --disable has not been handled
correctly.
2004-08-30 11:24:11 +00:00
Roland Illig
73207a8994
* slang.h: Added const qualifier to some of the SLang functions.
2004-08-30 11:12:57 +00:00
Roland Illig
be94f06cc2
* ri-gcc-warnings.m4: Fixed handling of more than one --enable option.
2004-08-30 10:46:07 +00:00
Roland Illig
2ed35b596c
* Code cleanup: Added const qualifier for variables and
...
function declarations where possible. No functional
changes. Patch contributed by Andrew V Samoilov.
2004-08-30 10:38:00 +00:00
Roland Illig
3da9abba54
* Code cleanup: Added const qualifier for variables and
...
function declarations where possible. No functional changes.
2004-08-30 00:02:36 +00:00
Roland Illig
7bff9337c0
* Code cleanup: Added const qualifier for variables and
...
function declarations where possible. Additionally wrapped
the calls to putenv() by g_strdup().
2004-08-29 23:59:17 +00:00
Roland Illig
3f3c24f511
* view.c (move_backward2): Removed unused variables.
2004-08-29 23:56:53 +00:00
Roland Illig
1d573d9059
* Code cleanup: Added const qualifier for variables and
...
function declarations where possible. No functional changes.
2004-08-29 23:54:47 +00:00
Roland Illig
3957415603
* Code cleanup: Added const qualifier for variables and
...
function declarations where possible. No functional changes.
2004-08-29 23:39:38 +00:00
Roland Illig
03913065b4
* Code cleanup: Added const qualifier for variables and
...
function declarations where possible. No functional changes.
2004-08-29 23:27:40 +00:00
Roland Illig
17714fd8d9
* Code cleanup: Added const qualifier for variables and
...
function declarations where possible. No functional changes.
2004-08-29 23:20:01 +00:00
Roland Illig
4c1ea14493
* Code cleanup: Added const qualifier for variables and
...
function declarations where possible. Now using two temp
variables: one for strings that need not be freed (temp) and
one for strings that need to (temp2).
2004-08-29 22:55:57 +00:00
Roland Illig
5697bd2a92
* Code cleanup: Added const qualifier for variables and
...
function declarations where possible. No functional changes.
2004-08-29 22:51:02 +00:00
Roland Illig
d6d457ba9a
* dialog.c: made the callback parameter of find_widget_type correctly typed.
2004-08-29 22:44:17 +00:00