* Fix some minor 64-bit compilation issues.

This commit is contained in:
Justin Maggard
2009-07-17 22:54:31 +00:00
parent 1a5e1a6de9
commit 0d069effd9
5 changed files with 18 additions and 18 deletions

View File

@ -203,9 +203,10 @@ int callback(void *args, int argc, char **argv, char **azColName)
passed_args->size += ret;
}
if( resolution ) {
ret = sprintf(str_buf, "<SourceWidth>%.*s</SourceWidth>"
char *width = strsep(&resolution, "x");
ret = sprintf(str_buf, "<SourceWidth>%s</SourceWidth>"
"<SourceHeight>%s</SourceHeight>",
(index(resolution, 'x')-resolution), resolution, (rindex(resolution, 'x')+1));
width, resolution);
memcpy(passed_args->resp+passed_args->size, &str_buf, ret+1);
passed_args->size += ret;
}