From 1893b619a285fe5f562f48fede3aac413936c366 Mon Sep 17 00:00:00 2001 From: Fabian Keil Date: Thu, 3 Mar 2011 14:49:08 +0000 Subject: [PATCH] In pcrs_strerror(), properly report unknown positive error code values as unknown. Previously they were handled like 0 (no error). --- pcrs.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pcrs.c b/pcrs.c index 5ce10bd9..0750c00d 100644 --- a/pcrs.c +++ b/pcrs.c @@ -1,4 +1,4 @@ -const char pcrs_rcs[] = "$Id: pcrs.c,v 1.34 2009/06/19 15:34:32 fabiankeil Exp $"; +const char pcrs_rcs[] = "$Id: pcrs.c,v 1.35 2009/08/19 15:28:08 fabiankeil Exp $"; /********************************************************************* * * File : $Source: /cvsroot/ijbswa/current/pcrs.c,v $ @@ -80,7 +80,7 @@ static int is_hex_sequence(const char *sequence); *********************************************************************/ const char *pcrs_strerror(const int error) { - if (error < 0) + if (error != 0) { switch (error) { -- 2.39.2