Skip to content
Snippets Groups Projects
Commit 797c3d47 authored by dprice's avatar dprice
Browse files

* rcs-5.7-commitid.patch: Check for error return from time().

parent b0553dc6
No related branches found
No related tags found
No related merge requests found
2005-09-29 Derek Price <derek@ximbiot.com>
* rcs-5.7-commitid.patch: Check for error return from time().
2005-09-29 Mark D. Baushke <mdb@gnu.org>
* rcs-5.7-commitid.patch: Rename N as COMMITID_RAW_SIZE.
......
......@@ -273,7 +273,7 @@ Index:src/ci.c
+ len = read (fd, buf + sizeof(time_t), RANDOM_BYTES);
+ close (fd);
+ }
+ if (len > 0) {
+ if (len > 0 && rightnow != (time_t)-1) {
+ while (rightnow > 0) {
+ *--p = rightnow % (UCHAR_MAX + 1);
+ rightnow /= UCHAR_MAX + 1;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment