Do only one call to GetVersionEx in the common case.
[pspp] / lib / version-etc.c
index ddac30542fd3cda6f661828ed94e786014fbadfe..a580140c4597410706c5f6ed78bdb0ef4695c73f 100644 (file)
@@ -37,7 +37,7 @@ enum { COPYRIGHT_YEAR = 2009 };
 /* The three functions below display the --version information the
    standard way.
 
-   If COMMAND_NAME is NULL, the PACKAGE is asumed to be the name of
+   If COMMAND_NAME is NULL, the PACKAGE is assumed to be the name of
    the program.  The formats are therefore:
 
    PACKAGE VERSION
@@ -161,7 +161,7 @@ Written by %s, %s, %s,\n%s, %s, %s, %s,\n%s, and %s.\n"),
       fprintf (stream, _("\
 Written by %s, %s, %s,\n%s, %s, %s, %s,\n%s, %s, and others.\n"),
                authors[0], authors[1], authors[2], authors[3], authors[4],
-               authors[5], authors[6], authors[7], authors[8], authors[9]);
+               authors[5], authors[6], authors[7], authors[8]);
       break;
     }
 }
@@ -196,7 +196,7 @@ version_etc_va (FILE *stream,
 
   for (n_authors = 0;
        n_authors < 10
-        && (authtab[n_authors++] = va_arg (authors, const char *)) != NULL;
+        && (authtab[n_authors] = va_arg (authors, const char *)) != NULL;
        n_authors++)
     ;
   version_etc_arn (stream, command_name, package, version,
@@ -206,7 +206,7 @@ version_etc_va (FILE *stream,
 
 /* Display the --version information the standard way.
 
-   If COMMAND_NAME is NULL, the PACKAGE is asumed to be the name of
+   If COMMAND_NAME is NULL, the PACKAGE is assumed to be the name of
    the program.  The formats are therefore:
 
    PACKAGE VERSION