mirror of
https://github.com/owntone/owntone-server.git
synced 2025-11-09 13:39:47 -05:00
win32 cleanups
This commit is contained in:
@@ -141,13 +141,13 @@ int db_sql_escape(char *buffer, int *size, char *fmt, ...) {
|
||||
va_end(ap);
|
||||
|
||||
if(*size < (int)strlen(escaped)) {
|
||||
*size = strlen(escaped) + 1;
|
||||
*size = (int)strlen(escaped) + 1;
|
||||
db_sql_vmfree_fn(escaped);
|
||||
return DB_E_SIZE;
|
||||
}
|
||||
|
||||
strcpy(buffer,escaped);
|
||||
*size = strlen(escaped);
|
||||
*size = (int)strlen(escaped);
|
||||
db_sql_vmfree_fn(escaped);
|
||||
|
||||
return DB_E_SUCCESS;
|
||||
|
||||
@@ -587,7 +587,7 @@ int sp_scan(PARSETREE tree, int hint) {
|
||||
token_string=tree->current;
|
||||
if(found) {
|
||||
if(pfield->xlat) {
|
||||
len = strlen(pfield->xlat);
|
||||
len = (int)strlen(pfield->xlat);
|
||||
token_string = pfield->xlat;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user