fz::sprintf("%02x", 10) got " a", not "0a"

Everything related to libfilezilla

Moderator: Project members

Post Reply
Message
Author
twu2
425 Can't open data connection
Posts: 45
Joined: 2005-02-26 16:54

fz::sprintf("%02x", 10) got " a", not "0a"

#1 Post by twu2 » 2016-10-05 14:33

fz::sprintf("%02x", 10) got " a", not "0a"
but fz::sprintf("%02d", 2) will get "02".

it's by design or a bug?

User avatar
botg
Site Admin
Posts: 35492
Joined: 2004-02-23 20:49
First name: Tim
Last name: Kosse

Re: fz::sprintf("%02x", 10) got " a", not "0a"

#2 Post by botg » 2016-10-05 15:55

That's a bug.

User avatar
botg
Site Admin
Posts: 35492
Joined: 2004-02-23 20:49
First name: Tim
Last name: Kosse

Re: fz::sprintf("%02x", 10) got " a", not "0a"

#3 Post by botg » 2016-10-05 16:04

I've comitted a fix to the repository.

Post Reply