summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas "Pixel" Noble <pixel@nobis-crew.org>2010-09-09 18:33:21 +0200
committerNicolas "Pixel" Noble <pixel@nobis-crew.org>2010-09-09 18:33:21 +0200
commit6c8a48f2eadbe4378b0b03adb15617cbcc17cf05 (patch)
tree05475038fffe0b2fff47175093c7715928224a5a
parent52bc6767da574b751d5baead84f1eb04a184ac01 (diff)
Syncinc iupStrToMac fix with upstream IUP.
-rwxr-xr-xiup/src/iup_str.c5
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++;
}