From MAILER-DAEMON Tue Aug 30 11:07:34 2011
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1QyPuY-0007Ys-So
	for mharc-libtasn1-commit@gnu.org; Tue, 30 Aug 2011 11:07:34 -0400
Received: from eggs.gnu.org ([140.186.70.92]:46926)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <INVALID.NOREPLY@gnu.org>) id 1QyPuW-0007YZ-DQ
	for libtasn1-commit@gnu.org; Tue, 30 Aug 2011 11:07:33 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <INVALID.NOREPLY@gnu.org>) id 1QyPuT-0000wy-E9
	for libtasn1-commit@gnu.org; Tue, 30 Aug 2011 11:07:32 -0400
Received: from vcs.savannah.gnu.org ([140.186.70.72]:42424)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <INVALID.NOREPLY@gnu.org>) id 1QyPuT-0000wl-CZ
	for libtasn1-commit@gnu.org; Tue, 30 Aug 2011 11:07:29 -0400
Received: from nmav by vcs.savannah.gnu.org with local (Exim 4.72)
	(envelope-from <INVALID.NOREPLY@gnu.org>) id 1QyPuS-00071a-Us
	for libtasn1-commit@gnu.org; Tue, 30 Aug 2011 15:07:29 +0000
Date: Tue, 30 Aug 2011 15:07:28 +0000
Message-Id: <E1QyPuS-00071a-Us@vcs.savannah.gnu.org>
From: "Nikos Mavrogiannopoulos" <nmav@gnutls.org>
To: libtasn1-commit@gnu.org
Subject: [SCM] GNU libtasn1 branch, master, updated. libtasn1_2_9-9-g58cda71
X-Git-Refname: refs/heads/master
X-Git-Reftype: branch
X-Git-Oldrev: 22467f04196c52ebfdf14255748de1b977bff865
X-Git-Newrev: 58cda71590f48db415e0005f2513da53944063d1
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2)
X-Received-From: 140.186.70.72
X-BeenThere: libtasn1-commit@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: Commit messages for GNU Libtasn1 <libtasn1-commit.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/libtasn1-commit>,
	<mailto:libtasn1-commit-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/libtasn1-commit>
List-Post: <mailto:libtasn1-commit@gnu.org>
List-Help: <mailto:libtasn1-commit-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/libtasn1-commit>,
	<mailto:libtasn1-commit-request@gnu.org?subject=subscribe>
X-List-Received-Date: Tue, 30 Aug 2011 15:07:33 -0000

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU libtasn1".

http://git.savannah.gnu.org/cgit/libtasn1.git/commit/?id=58cda71590f48db415e0005f2513da53944063d1

The branch, master has been updated
       via  58cda71590f48db415e0005f2513da53944063d1 (commit)
      from  22467f04196c52ebfdf14255748de1b977bff865 (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.

- Log -----------------------------------------------------------------
commit 58cda71590f48db415e0005f2513da53944063d1
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date:   Tue Aug 30 17:07:21 2011 +0200

    small optimization

-----------------------------------------------------------------------

Summary of changes:
 lib/coding.c |    8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/lib/coding.c b/lib/coding.c
index 111e063..3cc0ef8 100644
--- a/lib/coding.c
+++ b/lib/coding.c
@@ -256,15 +256,17 @@ _asn1_objectid_der (unsigned char *str, unsigned char *der, int *der_len)
   char *temp, *n_end, *n_start;
   unsigned char bit7;
   unsigned long val, val1 = 0;
+  int str_len = strlen(str);
 
   max_len = *der_len;
 
-  temp = (char *) _asn1_malloc (strlen (str) + 2);
+  temp = _asn1_malloc (str_len + 2);
   if (temp == NULL)
     return ASN1_MEM_ALLOC_ERROR;
 
-  strcpy (temp, str);
-  strcat (temp, ".");
+  memcpy (temp, str, str_len);
+  temp[str_len] = '.';
+  temp[str_len+1] = 0;
 
   counter = 0;
   n_start = temp;


hooks/post-receive
-- 
GNU libtasn1


