Fix getopt bug

git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3310 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
patacongo
2011-02-23 02:08:33 +00:00
parent 2805c4beab
commit ab9715b9c6
5 changed files with 51 additions and 33 deletions
+2 -2
View File
@@ -2,7 +2,7 @@
* drivers/lcd/nokia6100.c
* Nokia 6100 LCD Display Driver
*
* Copyright (C) 2010 Gregory Nutt. All rights reserved.
* Copyright (C) 2010-2011 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <spudmonkey@racsa.co.cr>
*
* References:
@@ -928,7 +928,7 @@ static int nokia_putrun(fb_coord_t row, fb_coord_t col, FAR const uint8_t *buffe
#if NOKIA_XBIAS > 0
col += NOKIA_XBIAS;
#endif
#if NOKIA_XBIAS > 0
#if NOKIA_YBIAS > 0
row += NOKIA_YBIAS;
#endif
DEBUGASSERT(buffer && col >=0 && (col + npixels) <= NOKIA_XRES && row >= 0 && row < NOKIA_YRES);