Announcement

Collapse
No announcement yet.

Thumbnail jpg-comment with hex-value x'00'

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Thumbnail jpg-comment with hex-value x'00'

    If I change the jpg-comment with thumbnail every change added a x'00' value at the end of the comment (regardless function new or append).

    I have checked this in the JPG-file. Always a x'00' character at the end.

    Any chance to avoid this?

    Thanks for feedback. Regards Michael

    #2
    Originally posted by tws_snoopy View Post
    If I change the jpg-comment with thumbnail every change added a x'00' value at the end of the comment (regardless function new or append).

    I have checked this in the JPG-file. Always a x'00' character at the end.

    Any chance to avoid this?

    Thanks for feedback. Regards Michael
    My guess is that this is a simple programming bug, causing the new string inserted in place of an old one to also include the terminating NUL character from the source string, even though the original terminator of the destination string is also repadded to the end. Such a bug will cause the total string to grow by one NUL character for each time you edit the comment.

    I've seen similar errors many times before in other programming contexts.

    The only way to fix this sort of thing is to seek out the source code segment responsible and change it before compiling the next version.

    Best regards: dlanor

    Comment

    Working...
    X