aboutsummaryrefslogtreecommitdiff
path: root/autoconfig.cpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--autoconfig.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/autoconfig.cpp b/autoconfig.cpp
index 96f0eab..6dbb2c5 100644
--- a/autoconfig.cpp
+++ b/autoconfig.cpp
@@ -147,8 +147,12 @@ int main( int argc, char *argv[] )
147 FILE *psub = popen("git describe --always", "r"); 147 FILE *psub = popen("git describe --always", "r");
148 buf[fread( buf, 1, 1024, psub )] = '\0'; 148 buf[fread( buf, 1, 1024, psub )] = '\0';
149 for( int j = 0; buf[j]; j++ ) 149 for( int j = 0; buf[j]; j++ )
150 {
150 if( buf[j] == '\n' ) 151 if( buf[j] == '\n' )
152 {
151 buf[j] = '\0'; 153 buf[j] = '\0';
154 }
155 }
152 fwrite( buf, strlen(buf), 1, fOut ); 156 fwrite( buf, strlen(buf), 1, fOut );
153 pclose( psub ); 157 pclose( psub );
154 fprintf( fOut, "\"\n\n#endif\n"); 158 fprintf( fOut, "\"\n\n#endif\n");