mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Make the streamsize variable actually int
Casting a pointer to a size_t variable to a pointer to int is wrong on big endian machines. Not that I expect anyone to compile Subsurface 4 for Mac on PowerPC 64-bit, but just in case... Who knows, we may have some Solaris-on-UltraSPARC or AIX-on-POWER6 users. Signed-off-by: Thiago Macieira <thiago@macieira.org> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
0a57befb69
commit
841bdf3462
1 changed files with 2 additions and 2 deletions
|
@ -110,7 +110,7 @@ static char *prepare_dives_for_divelogs(const bool selected)
|
|||
struct dive *dive;
|
||||
FILE *f;
|
||||
char filename[PATH_MAX], *tempfile;
|
||||
size_t streamsize;
|
||||
int streamsize;
|
||||
char *membuf;
|
||||
xmlDoc *doc;
|
||||
xsltStylesheetPtr xslt = NULL;
|
||||
|
@ -173,7 +173,7 @@ static char *prepare_dives_for_divelogs(const bool selected)
|
|||
}
|
||||
free((void *)membuf);
|
||||
transformed = xsltApplyStylesheet(xslt, doc, NULL);
|
||||
xmlDocDumpMemory(transformed, (xmlChar **) &membuf, (int *)&streamsize);
|
||||
xmlDocDumpMemory(transformed, (xmlChar **) &membuf, &streamsize);
|
||||
xmlFreeDoc(doc);
|
||||
xmlFreeDoc(transformed);
|
||||
/*
|
||||
|
|
Loading…
Add table
Reference in a new issue