14 lines
558 B
Plaintext
14 lines
558 B
Plaintext
$OpenBSD: patch-protocols_oscar_oscar_util_c,v 1.3 2006/04/11 15:11:33 naddy Exp $
|
|
--- protocols/oscar/oscar_util.c.orig Fri Nov 18 11:17:07 2005
|
|
+++ protocols/oscar/oscar_util.c Sun Jan 29 03:23:14 2006
|
|
@@ -80,8 +80,7 @@ char *aimutil_itemidx(char *toSearch, in
|
|
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));
|