Bug#162582: dia: Ill path resolution with embeded images
Roland Stigge
Roland Stigge <stigge@antcom.de>, 162582@bugs.debian.org
Thu, 15 Jul 2004 00:06:28 +0200
--=-Q18wZrvDTJLoFb/a9xwr
Content-Type: text/plain
Content-Transfer-Encoding: 7bit
tag 162582 patch pending
thanks
Hi,
the attached patch fixes this.
bye,
Roland
--=-Q18wZrvDTJLoFb/a9xwr
Content-Disposition: attachment; filename=dia.patch
Content-Type: text/x-patch; name=dia.patch; charset=UTF-8
Content-Transfer-Encoding: 7bit
diff -ruN /home/ernie/debian/dia-0.94-pre1/objects/standard/image.c dia-0.94-pre1/objects/standard/image.c
--- /home/ernie/debian/dia-0.94-pre1/objects/standard/image.c 2004-05-21 18:01:34.000000000 +0200
+++ dia-0.94-pre1/objects/standard/image.c 2004-07-14 23:26:20.000000000 +0200
@@ -692,9 +692,11 @@
char *temp_string;
temp_string = g_malloc(strlen(diafile_dir) +
- strlen(image->file) +1);
+ strlen(G_DIR_SEPARATOR_S) +
+ strlen(image->file) + 1);
strcpy(temp_string, diafile_dir);
+ strcat(temp_string, G_DIR_SEPARATOR_S);
strcat(temp_string, image->file);
image->image = dia_image_load(temp_string);
--=-Q18wZrvDTJLoFb/a9xwr--