Kalle Olavi Niemitalo
801d520ddd
Fix compiler errors without HAVE_VARIADIC_MACROS.
2007-03-11 12:22:02 +02:00
Kalle Olavi Niemitalo
dc9175795a
Tell xgettext which functions expect format strings.
...
I constructed the list by grepping for "..." and looking for related
macros and va_list functions. Also grepped for "*fmt", and "*format"
but the extra functions found that way (add_date_to_string,
format_command, subst_user_agent, etc.) handle format strings that
don't have the same syntax as in printf: in particular, type safety
does not depend on the order of format specifiers like it does in
printf. Therefore, these format strings should not be subjected to
the "c-format" checks of msgfmt.
2007-03-11 11:25:11 +02:00
Kalle Olavi Niemitalo
a73d165fd7
string_assert: First arg of elinks_internal is a format string.
2007-03-11 10:41:58 +02:00
Kalle Olavi Niemitalo
e325b748be
XBEL: Fix us-ascii charset lookup.
...
Previously, print_xml_entities did look up the charset, but did not
save the result anywhere and just used 0, leading to further lookups
in subsequent calls. It worked by accident though, because the
codepage index of us-ascii currently is 0.
2007-03-11 10:36:44 +02:00
Kalle Olavi Niemitalo
0dfb88c802
textarea_edit: Cast size_t fx_maxlength to match "%u".
2007-03-11 00:25:42 +02:00
Kalle Olavi Niemitalo
2bd2686672
menu_leds_info: Revert the previous change.
...
Revert commit 2380ea9f1b
,
"menu_leds_info: Don't call msg_text." MSGBOX_SCROLLABLE requires
a modifiable copy of the string, and msg_text provides that. To
reproduce the crash, run ELinks in a small window, select the English
language, and choose Help -> LED indicators.
2007-03-11 00:18:33 +02:00
Kalle Olavi Niemitalo
2380ea9f1b
menu_leds_info: Don't call msg_text.
2007-03-11 00:05:25 +02:00
Kalle Olavi Niemitalo
2b7788614f
Type-check button arguments of msg_box.
...
Don't cast function pointers; calling functions via pointers of
incorrect types is not guaranteed to work. Instead, define the
functions with the desired types, and make them cast the incoming
parameters. Or define wrapper functions if the return types don't
match.
really_exit_prog wasn't being used outside src/dialogs/menu.c,
and I had to change its parameter type, so it's now static.
2007-03-10 23:50:56 +02:00
Kalle Olavi Niemitalo
1e8a61e09b
OS/2: Ensure correct type of NULL pointer for variadic spawnlp.
2007-03-10 23:12:31 +02:00
Kalle Olavi Niemitalo
76ced47dfe
Merge with http://elinks.cz/elinks.git
2007-03-10 16:57:29 +02:00
Kalle Olavi Niemitalo
701e7e3e64
cgi: Avoid assertion failure when the POST data is empty.
2007-03-10 16:56:16 +02:00
Laurent MONIN
26626c087c
French translation was updated.
2007-03-10 13:23:33 +01:00
Witold Filipczyk
035ce283c7
cgi: Fix the possible memleak and close pipes in case of error.
2007-03-10 13:45:56 +02:00
Witold Filipczyk
9179c8d3f6
test: The CGI script showing POST DATA sent to it.
...
TODO: Combine print-post.sh and print-vars.sh into one script.
2007-03-10 13:45:49 +02:00
Witold Filipczyk
eef7924ff1
POST method of CGI did not work. It works now.
2007-03-10 13:45:35 +02:00
Kalle Olavi Niemitalo
4c636d74f1
cgi: Ensure correct type of NULL pointer to variadic execl.
2007-03-10 13:19:31 +02:00
Witold Filipczyk
2828d587b2
cgi: set_nonblocking_fd
...
[ This is part of commit 71adb0e6cc
from the witekfl branch. The SMB part is in commit
36477ffa45
, and the FSP part is
in commit 93f3dc3bbf
. --KON ]
2007-03-10 13:10:35 +02:00
Witold Filipczyk
d341483639
gpm: ELinks can use the wheel mouse on the Linux console.
...
The gpm-wheel.patch in src/contrib. Tested for the exps2 mouse type.
2007-03-10 12:55:23 +02:00
Kalle Olavi Niemitalo
a1cf449218
Merge with http://elinks.cz/elinks.git
2007-03-10 12:15:49 +02:00
Kalle Olavi Niemitalo
87431832be
Document the syntax of protocol.rewrite.default_template.
2007-03-10 12:15:06 +02:00
Kalle Olavi Niemitalo
c068ca92c0
get_http_error_document: Change "happenned" to "happened".
2007-03-10 11:16:26 +02:00
Witold Filipczyk
2eda93326c
Polish translation was updated.
2007-03-06 19:37:06 +01:00
Kalle Olavi Niemitalo
f2fc402093
Merge with http://elinks.cz/elinks.git
2007-03-06 16:01:21 +02:00
Kalle Olavi Niemitalo
f905379aed
smb: Use atol rather than atoi for file sizes.
...
Corresponds to FSP commit 9f47368894
.
2007-03-06 15:59:14 +02:00
Kalle Olavi Niemitalo
3b634ffee6
smb: Don't call qsort with a NULL pointer.
...
Corresponds to FSP commit 97edc3a2cc
.
2007-03-06 15:59:06 +02:00
Kalle Olavi Niemitalo
6ae6c0b438
smb: Remove a cast.
...
Corresponds to FSP commit 95a377e81b
.
2007-03-06 15:59:00 +02:00
Kalle Olavi Niemitalo
846a368fb0
smb: Assert that there is room for a terminating null.
...
Corresponds to FSP commit 23b4b912ac
.
2007-03-06 15:58:50 +02:00
Kalle Olavi Niemitalo
588375444b
smb: Comment about not freeing memory in the child process.
...
Corresponds to FSP commit 368a749123
.
2007-03-06 15:58:45 +02:00
Kalle Olavi Niemitalo
146a605938
smb: Call close_socket(socket) rather than close(socket->fd).
...
Corresponds to FSP commit 3ba31763a9
.
2007-03-06 15:58:38 +02:00
Kalle Olavi Niemitalo
c19ad66070
smb: Comment and FIXME about closing file descriptors.
...
Corresponds to FSP commit 1ad016bdd5
.
2007-03-06 15:58:28 +02:00
Kalle Olavi Niemitalo
e08d040c4c
smb: Don't cast the qsort comparison function pointer.
...
Inspired by FSP commit c3a6ca3ef0
.
This time, the cast was a no-op though.
2007-03-06 15:58:24 +02:00
Kalle Olavi Niemitalo
9665f1b813
smb: More const.
...
Inspired by FSP commit c06d6ba5d0
.
2007-03-06 15:58:07 +02:00
Kalle Olavi Niemitalo
327de14aa8
smb: Fix libsmbclient 3.0.10 compatibility.
...
Also, allocate memory for only one copy of each comment string, rather
than two.
2007-03-06 15:57:58 +02:00
Kalle Olavi Niemitalo
f621ed63b4
Revert 11e6aa8d97
, "Bug 944, SMB: Fix leaks and libsmbclient 3.0.10 compatibility."
...
Revert commit 11e6aa8d97
.
It is not useful to complicate the code to free the memory,
because the process is soon going to exit, and it has inherited
a lot more memory allocations from its parent.
The libsmbclient 3.0.10 compatibility changes are good though.
I'll re-apply them soon enough.
2007-03-06 15:57:40 +02:00
Kalle Olavi Niemitalo
e517ef22a9
fsp: Try to recover from ABI mismatches caused by _FILE_OFFSET_BITS.
2007-03-06 15:57:18 +02:00
Laurent MONIN
f2916d8646
unblock_itrm(),block_itrm(): drop unused parameter fd.
2007-03-05 22:54:24 +01:00
Laurent MONIN
e4256e0e6a
Refresh status bar when key prefix is eaten. It fixes bug 930.
2007-03-05 22:15:50 +01:00
Laurent MONIN
d7400bed08
asprintf() is not used in this file.
2007-03-05 22:04:34 +01:00
Laurent MONIN
86686983c0
save_textarea_file(): do not open file for writing if not needed. Patch
...
by Alexey Tourbin.
2007-03-05 21:48:42 +01:00
Laurent MONIN
ecce8bfa91
save_textarea_file(): handle return values of fwrite() and fclose(). Patch
...
by Alexey Tourbin.
2007-03-05 21:47:09 +01:00
Laurent MONIN
1e00f2d10d
save_textarea_file(): cleanup handling of error, closing descriptors
...
and unlinking created file. Patch by Alexey Tourbin.
2007-03-05 21:44:58 +01:00
Laurent MONIN
12ec62810b
save_textarea_file(): h -> fd, file -> fp. Idea by Alexey Tourbin.
2007-03-05 21:41:17 +01:00
Laurent MONIN
5acb3a68fb
If there is nothing to write do not even open the file for write (test
...
formdata length). Patch by Alexey Tourbin.
2007-03-05 21:37:24 +01:00
Laurent MONIN
edb8d9001c
If there is nothing to write do not even open the file for write. Patch
...
by Alexey Tourbin.
2007-03-05 21:34:45 +01:00
Laurent MONIN
4b9ddf1481
Take care of fwrite() and fclose() return values. Patch by Alexey Tourbin.
2007-03-05 21:30:16 +01:00
Laurent MONIN
6bdc34cfbc
Unlink file on error. Patch by Alexey Tourbin.
2007-03-05 21:24:02 +01:00
Laurent MONIN
0a8b52282c
formfd -> fd, formfile -> fp, formfilename -> filename. Idea by Alexey
...
Tourbin.
2007-03-05 21:17:09 +01:00
Laurent MONIN
31865ef953
Fix gcc warning: value computed is not used. Patch by Alexey Tourbin.
2007-03-05 21:11:19 +01:00
Laurent MONIN
278dec0664
Fix gcc warning: value computed is not used. Patch by Alexey Tourbin.
2007-03-05 21:10:02 +01:00
Kalle Olavi Niemitalo
9f47368894
fsp: Try to support large files.
...
FSP v2 uses 32-bit file offsets in its UDP packets and cannot get past
4 GiB. ELinks should however try not to wrap the numbers to negative
at 2 GiB, if it is built with large file support.
2007-03-05 22:09:17 +02:00