mirror of
https://github.com/edeproject/ede.git
synced 2023-08-10 21:13:03 +03:00
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:
@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user