projects
/
mmh
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
don't build vmh.1 since vmh isn't distributed, and we no longer need tmac.h
[mmh]
/
sbr
/
fmt_compile.c
diff --git
a/sbr/fmt_compile.c
b/sbr/fmt_compile.c
index
d3e5ea9
..
6baabdc
100644
(file)
--- a/
sbr/fmt_compile.c
+++ b/
sbr/fmt_compile.c
@@
-7,7
+7,7
@@
#include <h/mh.h>
#include <h/addrsbr.h>
#include <h/mh.h>
#include <h/addrsbr.h>
-#include <zotnet/tws/tws.h>
+#include <h/tws.h>
#include <h/fmt_scan.h>
#include <h/fmt_compile.h>
#include <h/fmt_scan.h>
#include <h/fmt_compile.h>
@@
-270,6
+270,7
@@
fmt_compile(char *fstring, struct format **fmt)
* normal processing.
*/
i = strlen(fstring)/2 + 1;
* normal processing.
*/
i = strlen(fstring)/2 + 1;
+ if (i==1) i++;
next_fp = formatvec = (struct format *)calloc ((size_t) i,
sizeof(struct format));
if (next_fp == NULL)
next_fp = formatvec = (struct format *)calloc ((size_t) i,
sizeof(struct format));
if (next_fp == NULL)