projects
/
mmh
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
[mmh]
/
uip
/
dp.c
diff --git
a/uip/dp.c
b/uip/dp.c
index
4e9c5cb
..
95a7163
100644
(file)
--- a/
uip/dp.c
+++ b/
uip/dp.c
@@
-74,10
+74,10
@@
main (int argc, char **argv)
snprintf (buf, sizeof(buf), "%s [switches] dates ...",
invo_name);
print_help (buf, switches, 1);
snprintf (buf, sizeof(buf), "%s [switches] dates ...",
invo_name);
print_help (buf, switches, 1);
- done (1);
+ done (0);
case VERSIONSW:
print_version(invo_name);
case VERSIONSW:
print_version(invo_name);
- done (1);
+ done (0);
case FORMSW:
if (!(form = *argp++) || *form == '-')
case FORMSW:
if (!(form = *argp++) || *form == '-')
@@
-144,7
+144,7
@@
process (char *date, int length)
FINDCOMP (cptr, "text");
if (cptr)
cptr->c_text = date;
FINDCOMP (cptr, "text");
if (cptr)
cptr->c_text = date;
- fmt_scan (fmt, buffer, length, dat);
+ fmt_scan (fmt, buffer, sizeof buffer - 1, length, dat);
fputs (buffer, stdout);
return status;
fputs (buffer, stdout);
return status;