]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - arch/alpha/lib/strncpy.S
alpha: strncpy/strncat fixes
[linux-2.6-omap-h63xx.git] / arch / alpha / lib / strncpy.S
index bbdef1be5f95fda9ee4ef87cdb1827b237c01fce..a46f7f3ad8c731961dd3f24502955ab5953477ca 100644 (file)
@@ -35,7 +35,7 @@ strncpy:
 
        or      $3, $24, $3     # clear the bits between the last
        or      $4, $27, $4     # written byte and the last byte in COUNT
-       andnot  $4, $3, $4
+       andnot  $3, $4, $4
        zap     $1, $4, $1
 
        stq_u   $1, 0($16)