* Add some logging and forking tweaks to work better with systemd.

This commit is contained in:
Justin Maggard
2012-10-04 21:04:36 +00:00
parent de15926f76
commit 2e120e83a0
5 changed files with 43 additions and 25 deletions

View File

@ -252,7 +252,8 @@ _asf_load_string(FILE *fp, int type, int size, char *buf, int len)
case ASF_VT_UNICODE:
for(j = 0; j < size; j += 2)
{
wc = *(__s16*)&data[j];
wd16 = (__s16 *) &data[j];
wc = (__u16)*wd16;
i += utf16le_to_utf8(&buf[i], len - i, wc);
}
break;