* [gentoo-commits] gentoo-x86 commit in games-roguelike/moria/files: 5.5.2-hours.patch
@ 2010-05-05 20:28 Michael Sterrett (mr_bones_)
0 siblings, 0 replies; only message in thread
From: Michael Sterrett (mr_bones_) @ 2010-05-05 20:28 UTC (permalink / raw
To: gentoo-commits
mr_bones_ 10/05/05 20:28:22
Added: 5.5.2-hours.patch
Log:
EAPI=2; honor LDFLAGS; read hours file correctly (bug #316389)
(Portage version: 2.1.8.3/cvs/Linux i686)
Revision Changes Path
1.1 games-roguelike/moria/files/5.5.2-hours.patch
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-roguelike/moria/files/5.5.2-hours.patch?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-roguelike/moria/files/5.5.2-hours.patch?rev=1.1&content-type=text/plain
Index: 5.5.2-hours.patch
===================================================================
diff -ru umoria.orig/source/files.c umoria/source/files.c
--- umoria.orig/source/files.c 1994-07-21 21:47:22.000000000 -0400
+++ umoria/source/files.c 2010-05-05 14:51:44.334588483 -0400
@@ -130,19 +130,19 @@
if (strlen(in_line) > 3)
{
if (!strncmp(in_line, "SUN:", 4))
- (void) strcpy(days[0], in_line);
+ (void) snprintf(days[0], sizeof(days[0]), "%s", in_line);
else if (!strncmp(in_line, "MON:", 4))
- (void) strcpy(days[1], in_line);
+ (void) snprintf(days[1], sizeof(days[0]), "%s", in_line);
else if (!strncmp(in_line, "TUE:", 4))
- (void) strcpy(days[2], in_line);
+ (void) snprintf(days[2], sizeof(days[0]), "%s", in_line);
else if (!strncmp(in_line, "WED:", 4))
- (void) strcpy(days[3], in_line);
+ (void) snprintf(days[3], sizeof(days[0]), "%s", in_line);
else if (!strncmp(in_line, "THU:", 4))
- (void) strcpy(days[4], in_line);
+ (void) snprintf(days[4], sizeof(days[0]), "%s", in_line);
else if (!strncmp(in_line, "FRI:", 4))
- (void) strcpy(days[5], in_line);
+ (void) snprintf(days[5], sizeof(days[0]), "%s", in_line);
else if (!strncmp(in_line, "SAT:", 4))
- (void) strcpy(days[6], in_line);
+ (void) snprintf(days[6], sizeof(days[0]), "%s", in_line);
}
(void) fclose(file1);
}
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2010-05-05 20:28 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-05-05 20:28 [gentoo-commits] gentoo-x86 commit in games-roguelike/moria/files: 5.5.2-hours.patch Michael Sterrett (mr_bones_)
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox