Commit Graph

17 Commits

Author SHA1 Message Date
Denis Kenzior c56b66bf4b gatchat: Fix use of unterminated strings
escaped_str was allocated of size escaped + 1.  But we were only
memsetting the first escaped characters.
2019-07-16 23:15:10 -05:00
Marcel Holtmann 8bc6aa9880 gatchat: Avoid string overflow warning in debug function 2019-05-15 17:04:16 +02:00
Denis Kenzior 22294e80f6 gatutil: Use g_ascii_isprint instead of isprint 2012-01-11 14:31:45 -06:00
Marcel Holtmann 21f9da9916 gatchat: Update copyright information 2011-10-10 13:39:25 -07:00
Marcel Holtmann 4dc66b9cb0 gatchat: Abort hexdump helper when no debug function is specified 2011-08-09 20:00:18 -07:00
Marcel Holtmann 6351cb1e4e gatchat: Fix extra empty line issue with hexdump helper 2011-08-09 19:23:33 -07:00
Marcel Holtmann 4b76ec7159 gatchat: Add utility function for hexdump debugs 2011-08-09 19:17:52 -07:00
Marcel Holtmann 5d524cac73 gatchat: Small cleanup to make function look simpler 2011-01-20 10:55:31 +01:00
Denis Kenzior 45abba276b gatchat: Turn off buffering of GAtChat IO channels
After commit d83da35370 this was causing
the command queue to never run.
2011-01-18 12:16:19 -06:00
Lucas De Marchi 521071a785 gatchat: explicitly compare pointers to NULL
This patch was generated by the following semantic patch
(http://coccinelle.lip6.fr/)

// <smpl>
@fix disable is_null,isnt_null1@
expression *E;
@@

- !E
+ E == NULL
// </smpl>
2010-11-29 12:05:29 -06:00
Denis Kenzior 0b2beb0068 gatutil: Handle non-printable characters
Signed arithmetic and shifts do not work well...
2010-08-16 11:25:19 -05:00
Denis Kenzior 8e15816ac1 Fix: Don't try to set channel flags if they're 0 2010-04-13 15:37:05 -05:00
Marcel Holtmann a9c204effa Add utility helper for debugging binary blobs 2010-04-10 11:56:11 +02:00
Denis Kenzior 8d9f7fda2e Fix: Use g_try_malloc in gatutil 2010-03-16 17:22:56 -05:00
Marcel Holtmann c9a37e4a9a Add new constructor for fully blocking operation 2010-01-28 22:05:44 +01:00
Denis Kenzior aebda1ac94 Refactor: Reorder argument order
The order of arguments was a bit confusing, reorder them to make more
logical sense.
2010-01-20 14:21:22 -06:00
Zhenhua Zhang 7145edd3a4 Add gatutil.c to share common APIs with GAtServer
Add gatutil.c/h gat.h and move shared typedef and APIs into it.
So that they can be shared by GAtServer and GAtChat.
2010-01-20 14:13:57 -06:00