Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <519007F7.1080806@mccme.ru>
Date: Mon, 13 May 2013 01:21:59 +0400
From: Alexander Cherepanov <cherepan@...me.ru>
To: john-dev@...ts.openwall.com
Subject: strncmp with n==1

Hi!

Let's get rid of strncmp with n==1. This could be done with the 
following command:

perl -i -pe "s/strncmp\((\w+), \"(.)\", 1\) != 0/*\$1 != '\$2'/" *.c

which leads to the attached patch.

-- 
Alexander Cherepanov

View attachment "0001-Get-rid-of-strncmp-with-n-1.patch" of type "text/x-patch" (10615 bytes)

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.