* ChangeLog tweak
[deliverable/binutils-gdb.git] / gprof / source.c
index b0c6ecdb479219da3c6c3a07666fadb9242913aa..4901a04b0379c228583b5ca279e8f00eb8c6b164 100644 (file)
@@ -36,7 +36,7 @@ DEFUN (source_file_lookup_path, (path), const char *path)
 
       sf = (Source_File *) xmalloc (sizeof (*sf));
       memset (sf, 0, sizeof (*sf));
-      sf->name = strdup (path);
+      sf->name = xstrdup (path);
       sf->next = first_src_file;
       first_src_file = sf;
     }
@@ -137,7 +137,7 @@ DEFUN (annotate_source, (sf, max_width, annote, arg),
        {
          if (errno == ENOENT)
            {
-             fprintf (stderr, "%s: could not locate `%s'\n",
+             fprintf (stderr, _("%s: could not locate `%s'\n"),
                       whoami, sf->name);
            }
          else
@@ -197,7 +197,7 @@ DEFUN (annotate_source, (sf, max_width, annote, arg),
        {
          fprintf (ofp, "\f\n");
        }
-      fprintf (ofp, "*** File %s:\n", sf->name);
+      fprintf (ofp, _("*** File %s:\n"), sf->name);
     }
 
   annotation = xmalloc (max_width + 1);
This page took 0.022898 seconds and 4 git commands to generate.