OSDN Git Service

fix #36224
authorSHIRAKATA Kentaro <argrath@ub32.org>
Sat, 2 Apr 2016 13:25:49 +0000 (22:25 +0900)
committerSHIRAKATA Kentaro <argrath@ub32.org>
Sat, 2 Apr 2016 18:14:39 +0000 (03:14 +0900)
src/shk.c

index 63a0acf..28d8c6a 100644 (file)
--- a/src/shk.c
+++ b/src/shk.c
@@ -3361,6 +3361,9 @@ xchar x, y;
     shkmoney = money_cnt(shkp->minvent);
     if (!shkmoney) {
         char c, qbuf[BUFSZ];
+#if 1 /*JP*/
+        char qsfx[BUFSZ];
+#endif
         long tmpcr = ((offer * 9L) / 10L) + (offer <= 1L);
 
         if (sell_how == SELL_NORMAL || auto_credit) {
@@ -3376,9 +3379,9 @@ xchar x, y;
             c = ynaq(safe_qbuf(qbuf, qbuf, "?", obj, doname, thesimpleoname,
                                (obj->quan == 1L) ? "that" : "those"));
 #else
-            Sprintf(qbuf, "\82É\82Â\82¢\82Ä%ld%s\82Ì\97a\82¯\8bà\82ð\8eó\82¯\82¢\82ê\82Ü\82·\82©\81H", tmpcr,
+            Sprintf(qsfx, "\82É\82Â\82¢\82Ä%ld%s\82Ì\97a\82¯\8bà\82ð\8eó\82¯\82¢\82ê\82Ü\82·\82©\81H", tmpcr,
                     currency(tmpcr));
-            c = ynaq(safe_qbuf(qbuf, "", qbuf, obj, doname, thesimpleoname,
+            c = ynaq(safe_qbuf(qbuf, "", qsfx, obj, doname, thesimpleoname,
                                "\82»\82ê"));
 #endif
             if (c == 'a') {