Enlightenment CVS committal Author : mej Project : eterm Module : libast
Dir : eterm/libast/src Modified Files: conf.c socket.c strings.c Log Message: Tue Jun 29 14:32:01 2004 Michael Jennings (mej) I'll document all this stuff shortly. ---------------------------------------------------------------------- =================================================================== RCS file: /cvsroot/enlightenment/eterm/libast/src/conf.c,v retrieving revision 1.19 retrieving revision 1.20 diff -u -3 -r1.19 -r1.20 --- conf.c 23 Feb 2004 21:47:28 -0000 1.19 +++ conf.c 29 Jun 2004 18:32:20 -0000 1.20 @@ -31,7 +31,7 @@ * @author Michael Jennings <[EMAIL PROTECTED]> */ -static const char cvs_ident[] = "$Id: conf.c,v 1.19 2004/02/23 21:47:28 mej Exp $"; +static const char cvs_ident[] = "$Id: conf.c,v 1.20 2004/06/29 18:32:20 mej Exp $"; #ifdef HAVE_CONFIG_H # include <config.h> @@ -502,7 +502,7 @@ switch (*pbuff) { case '~': D_CONF(("Tilde detected.\n")); - if (!in_single && !in_double) { + if (!in_single && !in_double && getenv("HOME")) { strncpy(newbuff + j, getenv("HOME"), max - j); cnt1 = strlen(getenv("HOME")) - 1; cnt2 = max - j - 1; =================================================================== RCS file: /cvsroot/enlightenment/eterm/libast/src/socket.c,v retrieving revision 1.19 retrieving revision 1.20 diff -u -3 -r1.19 -r1.20 --- socket.c 5 Feb 2004 21:29:38 -0000 1.19 +++ socket.c 29 Jun 2004 18:32:20 -0000 1.20 @@ -21,7 +21,7 @@ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ -static const char cvs_ident[] = "$Id: socket.c,v 1.19 2004/02/05 21:29:38 mej Exp $"; +static const char cvs_ident[] = "$Id: socket.c,v 1.20 2004/06/29 18:32:20 mej Exp $"; #ifdef HAVE_CONFIG_H # include <config.h> @@ -749,7 +749,7 @@ addr = SPIF_ALLOC(unixsockaddr); addr->sun_family = AF_UNIX; addr->sun_path[0] = 0; - strncat(addr->sun_path, SPIF_STR_STR(spif_url_get_path(self)), sizeof(addr->sun_path)); + strncat(addr->sun_path, SPIF_STR_STR(spif_url_get_path(self)), sizeof(addr->sun_path) - 1); return addr; } =================================================================== RCS file: /cvsroot/enlightenment/eterm/libast/src/strings.c,v retrieving revision 1.17 retrieving revision 1.18 diff -u -3 -r1.17 -r1.18 --- strings.c 3 Feb 2004 23:17:00 -0000 1.17 +++ strings.c 29 Jun 2004 18:32:20 -0000 1.18 @@ -30,7 +30,7 @@ * @author Michael Jennings <[EMAIL PROTECTED]> */ -static const char cvs_ident[] = "$Id: strings.c,v 1.17 2004/02/03 23:17:00 mej Exp $"; +static const char cvs_ident[] = "$Id: strings.c,v 1.18 2004/06/29 18:32:20 mej Exp $"; #ifdef HAVE_CONFIG_H # include <config.h> @@ -680,13 +680,7 @@ { char buff1[128], buff2[128]; - if (SPIF_PTR_ISNULL(v1) && SPIF_PTR_ISNULL(v2)) { - return SPIF_CMP_EQUAL; - } else if (SPIF_PTR_ISNULL(v1)) { - return SPIF_CMP_LESS; - } else if (SPIF_PTR_ISNULL(v2)) { - return SPIF_CMP_GREATER; - } + SPIF_COMP_CHECK_NULL(v1, v2); for (; *v1 && *v2; ) { if (isalpha(*v1) && isalpha(*v2)) { ------------------------------------------------------- This SF.Net email sponsored by Black Hat Briefings & Training. Attend Black Hat Briefings & Training, Las Vegas July 24-29 - digital self defense, top technical experts, no vendor pitches, unmatched networking opportunities. Visit www.blackhat.com _______________________________________________ enlightenment-cvs mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs