Author: Andreas Tille Last-Update: Thu, 16 Mar 2017 14:19:14 +0100 Bug-Debian: https://bugs.debian.org/857900 Description: Make sure also C-code interprets VERSION as string --- a/src/scythe.c +++ b/src/scythe.c @@ -30,7 +30,7 @@ static const float default_prior = 0.3; #endif #ifndef VERSION -#define VERSION 0.994 +#define VERSION "0.994" #endif /* Options drawn from GNU's coreutils/src/system.h */ @@ -50,11 +50,11 @@ enum { break; #define case_GETOPT_VERSION_CHAR(Program_name, Version, Authors) \ case GETOPT_VERSION_CHAR: \ - fprintf(stdout, "%s version %0.3f\nCopyright (c) 2011 The Regents " \ + fprintf(stdout, "%s version %s\nCopyright (c) 2011 The Regents " \ "of University of California, Davis Campus.\n" \ "%s is free software and comes with ABSOLUTELY NO WARRANTY.\n" \ "Distributed under the MIT License.\n\nWritten by %s\n", \ - Program_name, (double) Version, Program_name, Authors); \ + Program_name, Version, Program_name, Authors); \ exit(EXIT_SUCCESS); \ break; /* end code drawn from system.h */