]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
For b/8315591, b/20141439 correct off-by-one error that resulted in last byte of...
authorPaul Pluzhnikov <ppluzhnikov@google.com>
Wed, 3 Jun 2015 15:58:35 +0000 (08:58 -0700)
committerPaul Pluzhnikov <ppluzhnikov@google.com>
Wed, 3 Jun 2015 15:58:35 +0000 (08:58 -0700)
elf/dl-load.c

index 3aa581692d93ac16ee8304615a94c052d0c9ecee..1afaddff2aa5cf8d062dc920c902226fb4aee04b 100644 (file)
@@ -965,7 +965,7 @@ _dl_map_object_from_fd (const char *name, const char *origname, int fd, off_t of
 
       char tmp[20];
       tmp[19] = '\0';
-      strcat(realname, _itoa(offset, &tmp[18], 16, 0));
+      strcat(realname, _itoa(offset, &tmp[19], 16, 0));
     }
 #endif