Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CABob6ipiRF=H_0-HcdC7YsVLE2umK2O9XPZHd8EbfV6v8OBW-Q@mail.gmail.com>
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

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.