[svn] gpg-error - r188 - in trunk: . src
svn author marcus
cvs at cvs.gnupg.org
Fri Dec 1 14:08:26 CET 2006
Author: marcus
Date: 2006-12-01 14:08:26 +0100 (Fri, 01 Dec 2006)
New Revision: 188
Modified:
trunk/ChangeLog
trunk/src/gpg-error.c
Log:
2006-12-01 Marcus Brinkmann <marcus at g10code.de>
* src/gpg-error.c (get_err_from_number): Fix last change.
Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog 2006-12-01 13:03:16 UTC (rev 187)
+++ trunk/ChangeLog 2006-12-01 13:08:26 UTC (rev 188)
@@ -1,5 +1,7 @@
2006-12-01 Marcus Brinkmann <marcus at g10code.de>
+ * src/gpg-error.c (get_err_from_number): Fix last change.
+
* src/gpg-error.c (get_err_from_number): Support source and code
number in split format like "7.17".
Modified: trunk/src/gpg-error.c
===================================================================
--- trunk/src/gpg-error.c 2006-12-01 13:03:16 UTC (rev 187)
+++ trunk/src/gpg-error.c 2006-12-01 13:08:26 UTC (rev 188)
@@ -260,7 +260,7 @@
if (errno)
return 0;
- if (nr > GPG_ERR_CODE_DIM)
+ if (nr > UINT_MAX)
return 0;
if (*tail)
@@ -269,7 +269,7 @@
if (errno || *tail)
return 0;
- if (cnr >= GPG_ERR_SOURCE_DIM)
+ if (nr >= GPG_ERR_SOURCE_DIM || cnr >= GPG_ERR_CODE_DIM)
return 0;
nr = gpg_err_make (nr, cnr);
More information about the Gnupg-commits
mailing list