libidn-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

CVS libidn/lib


From: libidn-commit
Subject: CVS libidn/lib
Date: Sun, 26 Sep 2004 09:04:33 +0200

Update of /home/cvs/libidn/lib
In directory dopio:/tmp/cvs-serv24161/lib

Modified Files:
        Makefile.am toutf8.c 
Log Message:
Use Lesser GNULib.

--- /home/cvs/libidn/lib/Makefile.am    2004/06/26 11:03:53     1.21
+++ /home/cvs/libidn/lib/Makefile.am    2004/09/26 07:04:33     1.22
@@ -20,6 +20,8 @@
 
 EXTRA_DIST = gen-stringprep-tables.pl gen-unicode-tables.pl gen-tld-tables.pl
 
+AM_CPPFLAGS = -I$(top_srcdir)/gl -I../gl
+
 lib_LTLIBRARIES = libidn.la
 
 idn_int = idn-int.h
@@ -42,7 +44,7 @@
 if TLD
 libidn_la_SOURCES += tld.h tld.c tlds.c
 endif
-libidn_la_LIBADD = $(LTLIBICONV)
+libidn_la_LIBADD = $(LTLIBICONV) ../gl/libgnu.la
 libidn_la_LDFLAGS = -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE)
 
 nfkc.c: gunibreak.h gunicomp.h gunidecomp.h
--- /home/cvs/libidn/lib/toutf8.c       2004/04/22 23:53:37     1.10
+++ /home/cvs/libidn/lib/toutf8.c       2004/09/26 07:04:33     1.11
@@ -113,13 +113,7 @@
   int have_error = 0;
 
   if (strcmp (to_codeset, from_codeset) == 0)
-    {
-      char *q;
-      q = malloc (strlen (str) + 1);
-      if (!q)
-       return NULL;
-      return strcpy (q, str);
-    }
+    return strdup (str);
 
   cd = iconv_open (to_codeset, from_codeset);
 





reply via email to

[Prev in Thread] Current Thread [Next in Thread]