blob: f980beedf23effdf6319bc8f5a32b754f0b2a2ac (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
--- config.c.orig Fri Nov 8 19:06:04 2002
+++ config.c Fri Feb 14 13:07:09 2003
@@ -204,7 +204,7 @@
filename= getenv( "HOME");
if ( filename != NULL && filename[0] != '\0') {
char path[1024];
- sprintf( path, "%s/%s", filename, HOME_CONFIG_FILE);
+ snprintf( path, sizeof(path), "%s/%s", var, HOME_CONFIG_FILE);
}
/* 1. $QSTAT_CONFIG
2. UNIX: $HOME/.qstatrc WIN: $HOME/qstat.cfg
|