Ralph Little
9d26edac5f
sanei_wire: updated diag for size_t variables using %zu format
...
(u_long) casts sometimes generate incorrect values in diag.
%zu is pretty standard now so we should be using it for size_t args.
2023-02-20 15:25:46 -08:00
Olaf Meeuwissen
e79adde8b2
Use URL to refer users to copies of the GPL and LGPL
...
With the exception of use in three quotes as well as our inlcuded copy
of the GPL, all use of the Free Software Foundation's postal address
has been removed.
Re #320 .
2021-02-12 17:41:38 +09:00
Olaf Meeuwissen
8539f350fd
sanei_wire: Fix sanei_w_void function signature
...
This function needs to have the same number of arguments as any other
functions passed to sanei_w_array() via its w_element argument, i.e.
sanei_w_char and sanei_w_word, in the w_option_value() implementation
in sanei/sanei_net.c.
Fixes [-Werror=cast-function-type] compiler warning.
2019-09-24 21:22:13 +09:00
Olaf Meeuwissen
23891a2646
.editorconfig: trim trailing whitespace
2017-05-29 21:14:29 +09:00
Mattias Ellert
49d756ca44
Fixing compiler warnings
2007-01-20 23:02:53 +00:00
Frank Zago
5cab9b20c7
fixes for 64 bits platforms.
2004-11-13 19:43:01 +00:00
Henning Geinitz
008bc74603
Limit the total amount of memory used for arrays and pointers while decoding the
...
wire to 1 MB (bug #300158 ). Run "make clean" before "make"!
2004-10-14 17:15:23 +00:00
Henning Geinitz
af58065746
64 bit platform fixes (bug #300799 ).
2004-10-03 17:34:36 +00:00
Henning Geinitz
e3ceee04be
Check the IP address of the remote host before any communication occurs.
...
Check for a errors before trsuting values that came from remote. Make sure
that strings are 0-terminated.
2003-02-09 11:23:41 +00:00
Henning Geinitz
febf58f64e
Set allocated memory to 0 to avoid delivering garbage to the frontend.
...
Henning Meier-Geinitz <henning@meier-geinitz.de>
2002-03-20 20:40:58 +00:00
Henning Geinitz
2e6cf0663e
Added DBG message that warns if the read buffer
...
is going to be deleted (data loss).
Henning Meier-Geinitz <henning@meier-geinitz.de>
2002-01-04 21:25:08 +00:00
Henning Geinitz
7cf0f78888
Added debug output (based on patch from Jochen Eisinger <jochen.eisinger@gmx.de>).
...
Henning Meier-Geinitz <henning@meier-geinitz.de>
2001-10-12 18:29:35 +00:00
Jochen Eisinger
a2f4f3f1d9
2001-10-10 Jochen Eisinger <jochen.eisinger@gmx.de>
...
* sanei/sanei_wire.c: replaced memcpy with memmove
2001-10-11 22:36:06 +00:00
Henning Geinitz
951a6849fb
Fixed some memory leaks. Used #include "../include/sane/...".
...
Henning Meier-Geinitz <henning@meier-geinitz.de>
2001-05-13 16:16:59 +00:00
Henning Geinitz
308616ddd3
Don't free memory that's not alloced
2001-04-29 19:42:19 +00:00
Petter Reinholdtsen
165e106361
Make sure net backend release all memory when finished.
2001-04-29 11:11:07 +00:00
Henning Geinitz
e634e58af2
2000-12-16 Henning Meier-Geinitz <hmg@gmx.de>
...
* configure configure.in: Disable warnings by default for release.
* sanei/sanei_wire.c: Fixed typo.
2000-12-16 10:37:28 +00:00
Jochen Eisinger
78daa3c2a6
2000-12-16 Jochen Eisinger <jochen.eisinger@gmx.net>
...
* sanei/sanei_wire.c: added test for negative parameter to memcpy()
2000-12-15 23:02:12 +00:00
Petter Reinholdtsen
b4a1a513c9
Merge devel (v1.0.3) into head branch.
2000-08-12 15:11:46 +00:00
Petter Reinholdtsen
30ab5e718a
Initial revision
1999-08-09 18:06:01 +00:00