tags 292264 patch
thanks
Here's a patch for this bug. It may not be a very important one, but I like
to reduce the number of ways that computer programs can crash.
// Ulf
--- src/options.c.old 2005-03-13 15:52:46.000000000 +0100
+++ src/options.c 2006-12-12 22:47:35.000000000 +0100
@@ -11,7 +11,7 @@ FILE *OpenOptionsFile( char *mode )
FILE *file;
if ((char *)getenv("HOME") != NULL)
- sprintf( filename, "%s/.penguin-command", getenv("HOME"));
+ snprintf( filename, sizeof(filename), "%s/.penguin-command", getenv("HOME"));
else
sprintf( filename, "penguin-command.dat");