summaryrefslogtreecommitdiff
path: root/source3/param/params.c
diff options
context:
space:
mode:
Diffstat (limited to 'source3/param/params.c')
-rw-r--r--source3/param/params.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source3/param/params.c b/source3/param/params.c
index 1cf3aa9eb1..9cb6412b96 100644
--- a/source3/param/params.c
+++ b/source3/param/params.c
@@ -114,7 +114,8 @@ typedef struct {
static int mygetc(myFILE *f)
{
if (f->p >= f->buf+f->size) return EOF;
- return (int)*(f->p++);
+ /* be sure to return chars >127 as positive values */
+ return (int)( *(f->p++) & 0x00FF );
}
static void myfile_close(myFILE *f)