Attachment "win_version.patch" to
ticket [a312a28952]
added by
anonymous
2011-01-14 13:45:41.
Index: win/version.c
===================================================================
--- win/version.c
+++ win/version.c
@@ -2,10 +2,11 @@
** This C program exists to do the job that AWK would do for the unix
** makefile - to extract information from the "mainfest" and "manifest.uuid"
** files for this project in order to generate the "VERSION.h" header file.
*/
#include <stdio.h>
+#include <string.h>
int main(int argc, char *argv[]){
FILE *m,*u;
char b[10240];
u = fopen(argv[1],"r");
@@ -14,12 +15,12 @@
printf("#define MANIFEST_UUID \"%s\"\n",b);
printf("#define MANIFEST_VERSION \"[%10.10s]\"\n",b);
m = fopen(argv[2],"r");
while(b == fgets(b, sizeof(b)-1,m)){
if(0 == strncmp("D ",b,2)){
- printf("#define MANIFEST_DATE \"%.10s %.8s\"\n",b+2,b+13);
+ printf("#define MANIFEST_DATE \"%.10s %.12s\"\n",b+2,b+13);
printf("#define MANIFEST_YEAR \"%.4s\"\n",b+2);
return 0;
}
}
return 1;
}