Lines 191-199
Link Here
|
191 |
unsigned char txt[256]; |
191 |
unsigned char txt[256]; |
192 |
|
192 |
|
193 |
#ifndef WIN32 |
193 |
#ifndef WIN32 |
194 |
sprintf(txt,"%s/%s",getenv("HOME"),CFG_FILE); |
194 |
snprintf(txt,sizeof(txt),"%s/%s",getenv("HOME"),CFG_FILE); |
195 |
#else |
195 |
#else |
196 |
sprintf(txt,"./%s",CFG_FILE); |
196 |
snprintf(txt,sizeof(txt),"./%s",CFG_FILE); |
197 |
#endif |
197 |
#endif |
198 |
stream=fopen(txt,"r"); |
198 |
stream=fopen(txt,"r"); |
199 |
if (!stream)return; |
199 |
if (!stream)return; |
Lines 223-231
Link Here
|
223 |
unsigned char txt[256]; |
223 |
unsigned char txt[256]; |
224 |
|
224 |
|
225 |
#ifndef WIN32 |
225 |
#ifndef WIN32 |
226 |
sprintf(txt,"%s/%s",getenv("HOME"),CFG_FILE); |
226 |
snprintf(txt,sizeof(txt),"%s/%s",getenv("HOME"),CFG_FILE); |
227 |
#else |
227 |
#else |
228 |
sprintf(txt,"./%s",CFG_FILE); |
228 |
snprintf(txt,sizeof(txt),"./%s",CFG_FILE); |
229 |
#endif |
229 |
#endif |
230 |
stream=fopen(txt,"w"); |
230 |
stream=fopen(txt,"w"); |
231 |
if (!stream)return; |
231 |
if (!stream)return; |