diff options
author | Nicolas "Pixel" Noble <pixel@nobis-crew.org> | 2010-09-09 18:33:21 +0200 |
---|---|---|
committer | Nicolas "Pixel" Noble <pixel@nobis-crew.org> | 2010-09-09 18:33:21 +0200 |
commit | 6c8a48f2eadbe4378b0b03adb15617cbcc17cf05 (patch) | |
tree | 05475038fffe0b2fff47175093c7715928224a5a /iup | |
parent | 52bc6767da574b751d5baead84f1eb04a184ac01 (diff) |
Syncinc iupStrToMac fix with upstream IUP.
Diffstat (limited to 'iup')
-rwxr-xr-x | iup/src/iup_str.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/iup/src/iup_str.c b/iup/src/iup_str.c index 6ca8c1b..8c90446 100755 --- a/iup/src/iup_str.c +++ b/iup/src/iup_str.c @@ -572,6 +572,11 @@ void iupStrToMac(char* str) str++; *pstr++ = '\r'; } + else if (*str == '\n') /* UNIX line end */ + { + str++; + *pstr++ = '\r'; + } else *pstr++ = *str++; } |