diff options
Diffstat (limited to 'games/0verkill/files/patch-client.c')
-rw-r--r-- | games/0verkill/files/patch-client.c | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/games/0verkill/files/patch-client.c b/games/0verkill/files/patch-client.c new file mode 100644 index 000000000000..bdd5d483b5dd --- /dev/null +++ b/games/0verkill/files/patch-client.c @@ -0,0 +1,26 @@ +--- client.c.orig 2001-12-16 12:26:38.000000000 +0300 ++++ client.c 2013-11-17 11:40:44.755218781 +0400 +@@ -191,9 +191,9 @@ + unsigned char txt[256]; + + #ifndef WIN32 +- sprintf(txt,"%s/%s",getenv("HOME"),CFG_FILE); ++ snprintf(txt,sizeof(txt),"%s/%s",getenv("HOME"),CFG_FILE); + #else +- sprintf(txt,"./%s",CFG_FILE); ++ snprintf(txt,sizeof(txt),"./%s",CFG_FILE); + #endif + stream=fopen(txt,"r"); + if (!stream)return; +@@ -223,9 +223,9 @@ + unsigned char txt[256]; + + #ifndef WIN32 +- sprintf(txt,"%s/%s",getenv("HOME"),CFG_FILE); ++ snprintf(txt,sizeof(txt),"%s/%s",getenv("HOME"),CFG_FILE); + #else +- sprintf(txt,"./%s",CFG_FILE); ++ snprintf(txt,sizeof(txt),"./%s",CFG_FILE); + #endif + stream=fopen(txt,"w"); + if (!stream)return; |