summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorTingPing <tingping@tingping.se>2012-11-20 05:00:39 -0500
committerTingPing <tingping@tingping.se>2012-11-20 05:00:39 -0500
commit7ac36d4d8d455b62a803e3de80134ec4ae7c1781 (patch)
treebbb3ef17e06059e7be6d0ad51e47f7537f7d7fc2
parent991d3d5401bd9602cf4622b8560ccda2fac29c2e (diff)
Use g_strdup
-rw-r--r--plugins/checksum/checksum.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/checksum/checksum.c b/plugins/checksum/checksum.c
index 77359e3f..cedabc21 100644
--- a/plugins/checksum/checksum.c
+++ b/plugins/checksum/checksum.c
@@ -180,7 +180,7 @@ dccrecv_cb (char *word[], void *userdata)
 	}
 	else
 	{
-		file = word[2];
+		file = g_strdup(word[2]);
 	}
 
 	result = stat64 (file, &buffer);