Enlightenment CVS committal
Author : lordchaos
Project : e17
Module : proto
Dir : e17/proto/entropy/src
Modified Files:
entropy_core.c
Log Message:
* Work on rename
===================================================================
RCS file: /cvsroot/enlightenment/e17/proto/entropy/src/entropy_core.c,v
retrieving revision 1.38
retrieving revision 1.39
diff -u -3 -r1.38 -r1.39
--- entropy_core.c 12 Jan 2006 09:16:07 -0000 1.38
+++ entropy_core.c 18 Jan 2006 06:27:31 -0000 1.39
@@ -731,8 +731,25 @@
entropy_generic_file* entropy_generic_file_clone(entropy_generic_file* file) {
entropy_generic_file* clone =
entropy_malloc(sizeof(entropy_generic_file));
+
+ strncpy(clone->filename, file->filename, FILENAME_LENGTH);
+ strncpy(clone->path, file->path, 255);
+ strncpy(clone->mime_type, file->mime_type, MIME_LENGTH);
+ strncpy(clone->uri_base, file->uri_base, 15);
+
+ if (file->username)
+ clone->username = strdup(file->username);
+ else
+ clone->username = NULL;
+
+ if (file->password)
+ clone->password = strdup(file->password);
+ else
+ clone->password = NULL;
+
+ clone->thumbnail = file->thumbnail;
+ clone->md5 = strdup(file->md5);
- memcpy(clone, file, sizeof(entropy_generic_file));
return clone;
}
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
enlightenment-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs