diff -Nru linux.old/arch/parisc/lib/lusercopy.S linux.new/arch/parisc/lib/lusercopy.S --- linux.old/arch/parisc/lib/lusercopy.S Sat May 5 16:43:40 2001 +++ linux.new/arch/parisc/lib/lusercopy.S Sat May 5 16:44:00 2001 @@ -144,7 +144,7 @@ * * Returns -EFAULT if exception before terminator, * N if the entire buffer filled, - * otherwise strlen + 1 (i.e. includes zero byte) + * otherwise strlen (i.e. excludes zero byte) */ .export lstrncpy_from_user,code @@ -153,7 +153,7 @@ .callinfo NO_CALLS .entry comib,= 0,%r24,$lsfu_done - copy %r26,%r23 + copy %r24,%r23 get_sr 1: ldbs,ma 1(%sr1,%r25),%r1 $lsfu_loop: @@ -162,7 +162,7 @@ addib,<>,n -1,%r24,$lsfu_loop 2: ldbs,ma 1(%sr1,%r25),%r1 $lsfu_done: - sub %r26,%r23,%r28 + sub %r23,%r24,%r28 $lsfu_exit: bv %r0(%r2) nop