diff options
author | Simon Howard | 2006-09-20 19:04:02 +0000 |
---|---|---|
committer | Simon Howard | 2006-09-20 19:04:02 +0000 |
commit | 587a9702634a405b95a6e317db9ce0f8ec326155 (patch) | |
tree | 6c2879d66a280ae26c1401096f7ea3458db33d6c | |
parent | 24222e71326cc6462407cee099f5d711a175aca7 (diff) | |
download | chocolate-doom-587a9702634a405b95a6e317db9ce0f8ec326155.tar.gz chocolate-doom-587a9702634a405b95a6e317db9ce0f8ec326155.tar.bz2 chocolate-doom-587a9702634a405b95a6e317db9ce0f8ec326155.zip |
Make sure modified copyright banners always end in a newline. If they don't, add
one. This fixes av.wad (thanks to myk for reporting).
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 638
-rw-r--r-- | src/d_main.c | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/src/d_main.c b/src/d_main.c index f48c95e5..ae5d0b30 100644 --- a/src/d_main.c +++ b/src/d_main.c @@ -1,7 +1,7 @@ // Emacs style mode select -*- C++ -*- //----------------------------------------------------------------------------- // -// $Id: d_main.c 596 2006-09-02 19:10:07Z fraggle $ +// $Id: d_main.c 638 2006-09-20 19:04:02Z fraggle $ // // Copyright(C) 1993-1996 Id Software, Inc. // Copyright(C) 2005 Simon Howard @@ -184,7 +184,7 @@ //----------------------------------------------------------------------------- -static const char rcsid[] = "$Id: d_main.c 596 2006-09-02 19:10:07Z fraggle $"; +static const char rcsid[] = "$Id: d_main.c 638 2006-09-20 19:04:02Z fraggle $"; #define BGCOLOR 7 #define FGCOLOR 8 @@ -1277,6 +1277,14 @@ void PrintDehackedBanners(void) if (deh_s != copyright_banners[i]) { printf("%s", deh_s); + + // Make sure the modified banner always ends in a newline character. + // If it doesn't, add a newline. This fixes av.wad. + + if (deh_s[strlen(deh_s) - 1] != '\n') + { + printf("\n"); + } } } } |