timezone location not terminated by a nul character

Milan Crha mcrha at redhat.com
Mon Dec 19 05:37:15 PST 2016


On Sat, 2016-12-17 at 10:03 -0500, Allen Winter wrote:
> At least please help test the code in the master branch.

	Hi again,
I'm at git master commit a46028404 and I just noticed that the
timezone's locations are not terminated by a nul character, which
simply breaks stuff. The attached is a patch which fixed it for me.
Below are some examples of the provided locations by libical before the
patch being applied.
	Bye,
	Milan

 'Europe/Andorra'
 'Asia/Dubaiorra'
 'Asia/Kabulorra'
 'America/Antigua'
 'America/Anguilla�6 �'
...
 'Antarctica/DumontDUrville'
 'Antarctica/MawsonDUrville'
 'Antarctica/PalmerDUrville'
 'Antarctica/RotheraUrville'
 'Antarctica/SyowaraUrville'
 'Antarctica/TrollraUrville'
 'Antarctica/VostokaUrville'
 'America/Argentina/Buenos_Aires�����Ri'
 'America/Argentina/CordobaAires�����Ri'
 'America/Argentina/SaltabaAires�����Ri'
...
-------------- next part --------------
A non-text attachment was scrubbed...
Name: libical.patch
Type: text/x-patch
Size: 437 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/libical-devel/attachments/20161219/c593f9fa/attachment.bin>


More information about the libical-devel mailing list