Openwall GNU/*/Linux - a small security-enhanced Linux distro for servers
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date: Mon, 18 Mar 2013 01:47:41 +0100
From: Lukas Odzioba <lukas.odzioba@...il.com>
To: john-dev@...ts.openwall.com
Subject: Re: All *2john programs should use basename of filename
 when put as ?login? field

2013/3/18 magnum <john.magnum@...hmail.com>:
> Not sure I understand. Maybe you should just add a separate get_basename.cpp file then. Ideally we should port all C++ files to C.
I agree, and for now copy of get_basename() in only gpg2john.cpp is ok.

>     strnzcpy(retmem, base, retsize < 256 ? retsize : 256);
>
> The ternary is not needed. Just use
>
>     strnzcpy(retmem, base, sizeof(retmem));

Thx I'll fix that,
Lukas

Powered by blists - more mailing lists

Your e-mail address:

Powered by Openwall GNU/*/Linux - Powered by OpenVZ