Added some basic UTF-16 to UTF-8 code. Works nicely with mozilla/seamonkey

clipboard, but messes everything else. More work, more work...
Also added terminating char when strncpy is used. I miss that strlcpy...
This commit is contained in:
Sanel Zukan
2007-07-30 12:46:37 +00:00
parent 87ef0c5509
commit 1781407ef0
5 changed files with 80 additions and 2 deletions

View File

@ -173,6 +173,7 @@ bool ede_get_desktop_notify(char* txt, int txt_len) {
}
strncpy(txt, vnames[0], txt_len);
txt[txt_len] = '\0';
XFreeStringList(vnames);
return true;
}