Eliminate a few sprintf calls for printing numbers.

* subversion/mod_dav_svn/merge.c (dav_svn__merge_response): 
* subversion/clients/cmdline/status.c (print_status): 
  Replace sprintf with apr_psprintf for revision numbers.

* subversion/clients/cmdline/ls-cmd.c (print_dirents):
  Replace sprintf with apr_psprintf for file size.
Index: subversion/mod_dav_svn/merge.c
===================================================================
--- subversion/mod_dav_svn/merge.c	(revision 9692)
+++ subversion/mod_dav_svn/merge.c	(arbetskopia)
@@ -208,7 +208,7 @@
   svn_fs_root_t *root;
   svn_error_t *serr;
   const char *vcc;
-  char revbuf[20]; /* long enough for a long int */
+  const char *rev;
   svn_string_t *creationdate, *creator_displayname;
 
   serr = svn_fs_revision_root(&root, repos->fs, new_rev, pool);
@@ -229,7 +229,7 @@
                           NULL, 0 /* add_href */, pool);
 
   /* the version-name of the baseline is the revision number */
-  sprintf(revbuf, "%ld", new_rev);
+  rev = apr_psprintf(pool, "%ld", new_rev);
 
   /* get the creationdate and creator-displayname of the new revision, too. */
   serr = svn_fs_revision_prop(&creationdate, repos->fs, new_rev,
@@ -265,7 +265,7 @@
                         ### we need to tell the client to look at *this*
                         ### resource for the version-name. */
                      "<D:resourcetype><D:baseline/></D:resourcetype>" DEBUG_CR
-                     "<D:version-name>", revbuf, "</D:version-name>" DEBUG_CR,
+                     "<D:version-name>", rev, "</D:version-name>" DEBUG_CR,
                      NULL);
   if (creationdate)
     {
Index: subversion/clients/cmdline/ls-cmd.c
===================================================================
--- subversion/clients/cmdline/ls-cmd.c	(revision 9692)
+++ subversion/clients/cmdline/ls-cmd.c	(arbetskopia)
@@ -65,7 +65,7 @@
           apr_size_t size;
           const char *stdout_author = NULL;
           char timestr[20];
-          char size_buf[21]; /* Enough for 2^64 in base 10 plus '\0' */
+          const char *sizestr;
           
           if (dirent->last_author)
             SVN_ERR (svn_cmdline_cstring_from_utf8 (&stdout_author,
@@ -92,12 +92,12 @@
           if (apr_err)
             timestr[0] = '\0';
 
-          sprintf (size_buf, "%" SVN_FILESIZE_T_FMT, dirent->size);
+          sizestr = apr_psprintf (pool, "%" SVN_FILESIZE_T_FMT, dirent->size);
 
           printf ("%7ld %-8.8s %10s %12s %s%s\n",
                   dirent->created_rev,
                   stdout_author ? stdout_author : " ? ",
-                  (dirent->kind == svn_node_file) ? size_buf : "",
+                  (dirent->kind == svn_node_file) ? sizestr : "",
                   timestr,
                   stdout_entryname,
                   (dirent->kind == svn_node_dir) ? "/" : "");
Index: subversion/clients/cmdline/status.c
===================================================================
--- subversion/clients/cmdline/status.c	(revision 9692)
+++ subversion/clients/cmdline/status.c	(arbetskopia)
@@ -63,11 +63,9 @@
               apr_pool_t *pool)
 {
   char ood_status = '@';    /* Silence a gcc uninitialized warning */
-  char working_rev_buf[21]; /* Enough for 2^64 in base 10 plus '\0' */
-  char commit_rev_buf[21];
-  const char *working_rev = working_rev_buf;
-  const char *commit_rev = commit_rev_buf;
-  const char *commit_author = NULL; /* Silence a gcc uninitialised warning */
+  const char *working_rev = NULL; /* Silence a gcc uninitialised warning */
+  const char *commit_rev = NULL;
+  const char *commit_author = NULL;
 
   if (detailed)
     {
@@ -78,8 +76,7 @@
       else if (status->copied)
         working_rev = "-";
       else
-        sprintf (working_rev_buf, "%ld",
-                 status->entry->revision);
+        working_rev = apr_psprintf (pool, "%ld", status->entry->revision);
 
       if (status->repos_text_status != svn_wc_status_none
           || status->repos_prop_status != svn_wc_status_none)
@@ -90,8 +87,7 @@
       if (show_last_committed)
         {
           if (status->entry && SVN_IS_VALID_REVNUM (status->entry->cmt_rev))
-            sprintf(commit_rev_buf, "%ld",
-                    status->entry->cmt_rev);
+            commit_rev = apr_psprintf(pool, "%ld", status->entry->cmt_rev);
           else if (status->entry)
             commit_rev = " ? ";
           else
