|
From: | Vladimir 'φ-coder/phcoder' Serbinenko |
Subject: | Re: New command to check NT's hibernation state |
Date: | Thu, 22 Dec 2011 13:10:25 +0100 |
User-agent: | Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.24) Gecko/20111114 Icedove/3.1.16 |
On 18.12.2011 04:16, Peter Lustig wrote:
What's the reason to use strncasecmp? Does the case changes? Usually memcmp is the right way to check the signature. This also avoids the need of memset and trailing zero byte./* Return SUCCESS if magic indicates file is active; else return FAILURE */ if (!grub_strncasecmp ("hibr", hibr_file_magic, magic_size))
-- Regards Vladimir 'φ-coder/phcoder' Serbinenko
[Prev in Thread] | Current Thread | [Next in Thread] |