diff options
author | Kirill Volinsky <mataes2007@gmail.com> | 2012-05-18 18:02:47 +0000 |
---|---|---|
committer | Kirill Volinsky <mataes2007@gmail.com> | 2012-05-18 18:02:47 +0000 |
commit | fc02c04506fee6ae6412cff63a6b7536da0a7c00 (patch) | |
tree | 746c3bb48504dfdeb0aebf3e7c80f681f01374fa /plugins/TipperYM/str_utils.cpp | |
parent | 0ade2615265006e4ab8f701425f66c0e7653aabb (diff) |
tipper my patch
git-svn-id: http://svn.miranda-ng.org/main/trunk@50 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/TipperYM/str_utils.cpp')
-rw-r--r-- | plugins/TipperYM/str_utils.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/TipperYM/str_utils.cpp b/plugins/TipperYM/str_utils.cpp index 62d877f7e2..0e9b67f73f 100644 --- a/plugins/TipperYM/str_utils.cpp +++ b/plugins/TipperYM/str_utils.cpp @@ -249,10 +249,10 @@ char *t2utf(const TCHAR *ts) #endif
}
-char *myfgets(char *Buf, int MaxCount, FILE *File)
+TCHAR *myfgets(TCHAR *Buf, int MaxCount, FILE *File)
{
- fgets(Buf, MaxCount, File);
- for (size_t i = strlen(Buf) - 1; i >= 0; i--)
+ _fgetts(Buf, MaxCount, File);
+ for (size_t i = _tcslen(Buf) - 1; i >= 0; i--)
{
if (Buf[i] == '\n' || Buf[i] == ' ')
Buf[i] = 0;
@@ -260,6 +260,6 @@ char *myfgets(char *Buf, int MaxCount, FILE *File) break;
}
- CharLowerA(Buf);
+ CharLower(Buf);
return Buf;
}
\ No newline at end of file |