diff options
author | Vladimír Čunát <vcunat@gmail.com> | 2012-06-18 15:37:35 +0000 |
---|---|---|
committer | Vladimír Čunát <vcunat@gmail.com> | 2012-06-18 15:37:35 +0000 |
commit | 1a33b4b654903ec597fcdb743e649466bc563304 (patch) | |
tree | 7102a1590b686191e73d3c1347ae9a9b41ed6d1f /pkgs/applications/misc/stardict/stardict-3.0.3-overflow.patch | |
parent | fc496faab07e16558ebb13aab9d931bb01f8fe87 (diff) | |
download | nixlib-1a33b4b654903ec597fcdb743e649466bc563304.tar nixlib-1a33b4b654903ec597fcdb743e649466bc563304.tar.gz nixlib-1a33b4b654903ec597fcdb743e649466bc563304.tar.bz2 nixlib-1a33b4b654903ec597fcdb743e649466bc563304.tar.lz nixlib-1a33b4b654903ec597fcdb743e649466bc563304.tar.xz nixlib-1a33b4b654903ec597fcdb743e649466bc563304.tar.zst nixlib-1a33b4b654903ec597fcdb743e649466bc563304.zip |
Fixing stardict broken by my mistake.
svn path=/nixpkgs/trunk/; revision=34549
Diffstat (limited to 'pkgs/applications/misc/stardict/stardict-3.0.3-overflow.patch')
-rw-r--r-- | pkgs/applications/misc/stardict/stardict-3.0.3-overflow.patch | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/pkgs/applications/misc/stardict/stardict-3.0.3-overflow.patch b/pkgs/applications/misc/stardict/stardict-3.0.3-overflow.patch new file mode 100644 index 000000000000..482490105704 --- /dev/null +++ b/pkgs/applications/misc/stardict/stardict-3.0.3-overflow.patch @@ -0,0 +1,26 @@ +This patch is stardict-tools-3.0.3-destbufferoverflow.patch from OpenSUSE .src.rpm for: + +warning: call to ‘__fgets_chk_warn’ declared with attribute warning: fgets called with bigger size than length of destination buffer [enabled by default] + +--- tools/src/myspell2dic.c ++++ tools/src/myspell2dic.c +@@ -132,7 +132,7 @@ if (argc<3) + + fprintf(stderr, "Enter grammar language [Spanish]: "); + fflush(stderr); +-fgets(lang, 100, stdin); ++fgets(lang, 50, stdin); + if ((p=strchr(lang, '\n'))!=NULL) *p=0; + if (*lang==0) strcpy(lang, "Spanish"); + +--- tools/src/ooo2dict.c ++++ tools/src/ooo2dict.c +@@ -71,7 +71,7 @@ current2=malloc(10000); + + fprintf(stderr, "Enter thesaurus language [WordNet_English]: "); + fflush(stderr); +-fgets(lang, 100, stdin); ++fgets(lang, 50, stdin); + if ((p=strchr(lang, '\n'))!=NULL) *p=0; + if (*lang==0) strcpy(lang, "WordNet_English"); + F=fopen((argc>1)? argv[1]: "/usr/share/myspell/dicts/th_en_US_v2.dat", "rt"); |