You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
- 02111-1307, USA. */
+ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
+ 02110-1301, USA. */
#include <config.h>
#include "private.h"
-#if TIME_WITH_SYS_TIME
-#include <sys/time.h>
-#include <time.h>
-#else
-#if HAVE_SYS_TIME_H
-#include <sys/time.h>
-#else
-#include <time.h>
-#endif
-#endif
-
#include <ctype.h>
#include "alloc.h"
#include "error.h"
assert (e->type == OP_string);
assert ((dst == NULL) == (dst_size == 0));
expr_evaluate (e, c, case_idx, &s);
- st_bare_pad_len_copy (dst, s.string, dst_size, s.length);
+ buf_copy_rpad (dst, dst_size, s.string, s.length);
}
\f
#include "lexer.h"
dump_postfix = 1;
else if (lex_match ('('))
{
- char name[MAX_VAR_NAME_LEN + 1];
+ char name[LONG_NAME_LEN + 1];
struct variable *v;
size_t old_value_cnt;
int width;
retval = CMD_SUCCESS;
done:
- if (c != NULL)
- case_destroy (c);
+ if (c != NULL)
+ {
+ case_destroy (c);
+ free (c);
+ }
+ dict_destroy (d);
return retval;
}
break;
case OP_string:
fprintf (stderr, "s<%.*s>",
- (int) op->string.length, op->string.string);
+ (int) op->string.length,
+ op->string.string != NULL ? op->string.string : "");
break;
case OP_format:
fprintf (stderr, "f<%s%d.%d>",