Index: scribus/plugins/import/pdf/slaoutput.cpp
===================================================================
--- scribus/plugins/import/pdf/slaoutput.cpp	(Revision 23544)
+++ scribus/plugins/import/pdf/slaoutput.cpp	(Arbeitskopie)
@@ -3054,9 +3054,9 @@
 		case fontCIDType0COT:
 			if (((GfxCIDFont *)gfxFont)->getCIDToGID()) {
 				n = ((GfxCIDFont *)gfxFont)->getCIDToGIDLen();
-				codeToGID = (int *)gmallocn(n, sizeof(int));
+				codeToGID = (int *)gmallocn(n, sizeof(*codeToGID));
 				memcpy(codeToGID, ((GfxCIDFont *)gfxFont)->getCIDToGID(),
-				n * sizeof(int));
+				n * sizeof(*codeToGID));
 			} else {
 				codeToGID = nullptr;
 				n = 0;
@@ -3079,9 +3079,9 @@
 			if (((GfxCIDFont *)gfxFont)->getCIDToGID()) {
 				n = ((GfxCIDFont *)gfxFont)->getCIDToGIDLen();
 				if (n) {
-					codeToGID = (int *)gmallocn(n, sizeof(int));
+					codeToGID = (int *)gmallocn(n, sizeof(*codeToGID));
 					memcpy(codeToGID, ((GfxCIDFont *)gfxFont)->getCIDToGID(),
-					n * sizeof(Gushort));
+					n * sizeof(*codeToGID));
 				}
 			} else {
 				if (fileName)
