Sorry if the diff is messed up. Is there and emacs mode for gtkg
development? I didn't see a preferred diff format on the web sight.
This is just an off by one error that is probably harmless. Although,
this code is a little twisted and someone else might better think to
change it entirely [use a static buffer if orig_argv[0] is too
small?], instead of using this patch.
Fwiw,
Bill Pringlemeir.
[begin diff]
*** /home/bpringle/tmp/glib-missing.c.~10838~ 2006-05-22 14:01:28.000000000
-0400
--- /home/bpringle/tmp/glib-missing.c 2006-05-22 14:01:28.000000000 -0400
***************
*** 298,306 ****
tlen = strlen(title);
! if (tlen >= sysarglen) { /* If too large, needs
truncation */
! memcpy(orig_argv[0], title, sysarglen);
! (orig_argv[0])[sysarglen] = '\0';
} else {
memcpy(orig_argv[0], title, tlen + 1); /* Copy trailing NUL */
if (tlen + 1 < sysarglen)
--- 298,306 ----
tlen = strlen(title);
! if (tlen >= sysarglen - 1) { /* If too large, needs
truncation */
! memcpy(orig_argv[0], title, sysarglen - 1);
! (orig_argv[0])[sysarglen - 1] = '\0';
} else {
memcpy(orig_argv[0], title, tlen + 1); /* Copy trailing NUL */
if (tlen + 1 < sysarglen)
-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Gtk-gnutella-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gtk-gnutella-devel