about summary refs log tree commit diff
path: root/lib/util/nstring.h
diff options
context:
space:
mode:
authorgiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2007-08-31 21:04:17 +0000
committergiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2007-08-31 21:04:17 +0000
commit59d07fdcf4e40587fc7b23fef7d5a1559dc37eef (patch)
tree94d4f05574e0291b512704abb57da475bd337f11 /lib/util/nstring.h
parentbe66059f57f46101c8cd708f7691fbb90d8c760e (diff)
downloadnetpbm-mirror-59d07fdcf4e40587fc7b23fef7d5a1559dc37eef.tar.gz
netpbm-mirror-59d07fdcf4e40587fc7b23fef7d5a1559dc37eef.tar.xz
netpbm-mirror-59d07fdcf4e40587fc7b23fef7d5a1559dc37eef.zip
Fix streq to strneq so it compiles
git-svn-id: http://svn.code.sf.net/p/netpbm/code/trunk@394 9d0c8265-081b-0410-96cb-a4ca84ce46f8
Diffstat (limited to 'lib/util/nstring.h')
-rw-r--r--lib/util/nstring.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/util/nstring.h b/lib/util/nstring.h
index de53fdac..9d61cfa5 100644
--- a/lib/util/nstring.h
+++ b/lib/util/nstring.h
@@ -15,7 +15,7 @@ extern "C" {
 } /* to fake out automatic code indenters */
 #endif
 
-/* Here is are string functions that respect the size of the array
+/* Here are string functions that respect the size of the array
    into which you are copying -- E.g. STRSCPY truncates the source string as
    required so that it fits, with the terminating null, in the destination
    array.
@@ -27,7 +27,7 @@ extern "C" {
 #define STRSCAT(A,B) \
     (strncpy(A+strlen(A), B, sizeof(A)-strlen(A)), *((A)+sizeof(A)-1) = '\0')
 #define STRSEQ(A, B) \
-	(streq((A), (B), sizeof(A)))
+	(strneq((A), (B), sizeof(A)))
 #define MEMSZERO(A) \
     bzero((A), sizeof(A))