[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

gEDA-cvs: gaf.git: branch: master updated (1.6.1-20100214-155-g6dff7f3)



The branch, master has been updated
       via  6dff7f35a0ab76a2d07b8f6e68d48e638498426f (commit)
      from  ee7e4a8e823dd362bc0dc998cc584ab6ea84bdcd (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.


=========
 Summary
=========

 gschem/src/parsecmd.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)


=================
 Commit Messages
=================

commit 6dff7f35a0ab76a2d07b8f6e68d48e638498426f
Author: Peter TB Brett <peter@xxxxxxxxxxxxx>
Commit: Peter TB Brett <peter@xxxxxxxxxxxxx>

    gschem: Use g_strndup() instead of strndup().
    
    strndup() is not in the OS X libc.
    
    Reported-by: Matthew Wampler-Doty <matt@xxxxxxx>

:100644 100644 a77c984... 303bb3a... M	gschem/src/parsecmd.c

=========
 Changes
=========

commit 6dff7f35a0ab76a2d07b8f6e68d48e638498426f
Author: Peter TB Brett <peter@xxxxxxxxxxxxx>
Commit: Peter TB Brett <peter@xxxxxxxxxxxxx>

    gschem: Use g_strndup() instead of strndup().
    
    strndup() is not in the OS X libc.
    
    Reported-by: Matthew Wampler-Doty <matt@xxxxxxx>

diff --git a/gschem/src/parsecmd.c b/gschem/src/parsecmd.c
index a77c984..303bb3a 100644
--- a/gschem/src/parsecmd.c
+++ b/gschem/src/parsecmd.c
@@ -62,7 +62,7 @@ void usage(char *cmd)
 static void
 version ()
 {
-  char *git7 = strndup (PACKAGE_GIT_COMMIT, 7);
+  char *git7 = g_strndup (PACKAGE_GIT_COMMIT, 7);
   printf(_(
 "gEDA %s (g%s)\n"
 "Copyright (C) 1998-2010 gEDA developers\n"
@@ -71,7 +71,7 @@ version ()
 "included in the gEDA distribution.\n"
 "There is NO WARRANTY, to the extent permitted by law.\n"),
          PACKAGE_DOTTED_VERSION, git7);
-  free (git7);
+  g_free (git7);
   exit (0);
 }
 




_______________________________________________
geda-cvs mailing list
geda-cvs@xxxxxxxxxxxxxx
http://www.seul.org/cgi-bin/mailman/listinfo/geda-cvs