*** empty log message ***
[pspp-builds.git] / src / output.c
index b9f465dbfcb78351f2adfb35b6ced889c7ae353d..292a334c38974b1bd257991c09784283b3e501e3 100644 (file)
@@ -34,6 +34,9 @@
 #include "settings.h"
 #include "str.h"
 
+#include "gettext.h"
+#define _(msgid) gettext (msgid)
+
 /* FIXME? Should the output configuration format be changed to
    drivername:classname:devicetype:options, where devicetype is zero
    or more of screen, printer, listing? */
@@ -293,7 +296,7 @@ outp_read_devices (void)
   if (init_fn == NULL)
     {
       msg (IE, _("Cannot find output initialization file.  "
-                 "Use `-vvvv' to view search path."));
+                 "Use `-vvvvv' to view search path."));
       goto exit;
     }
 
@@ -908,7 +911,7 @@ outp_match_keyword (const char *s, struct outp_option *tab,
       *++cp = 0;
 
       info->initial = xstrdup (s);
-      info->options = xmalloc (sizeof *info->options * (cp - s));
+      info->options = xnmalloc (cp - s, sizeof *info->options);
       memcpy (info->options, ptr, sizeof *info->options * (cp - s));
     }