$OpenBSD: patch-protocols_oscar_oscar_util_c,v 1.4 2007/11/19 11:44:33 martynas Exp $
--- protocols/oscar/oscar_util.c.orig	Mon Aug 20 16:27:15 2007
+++ protocols/oscar/oscar_util.c	Mon Nov 19 13:39:01 2007
@@ -80,8 +80,7 @@ char *aimutil_itemidx(char *toSearch, int index, char 
 		toReturn = g_strdup("");
 	} else {
 		if (next == NULL) {
-			toReturn = g_malloc((strlen(last) + 1) * sizeof(char));
-			strcpy(toReturn, last);
+			toReturn = g_strdup(last);
 		} else {
 			toReturn = g_malloc((next - last + 1) * sizeof(char));
 			memcpy(toReturn, last, (next - last));
