This is an automated email from the git hooks/post-receive script.

ana.c-guest pushed a commit to branch master
in repository vor.

commit 05a4c4d607a32a44c92a36197cbc1d495ba2f851
Author: Ana Custura <[email protected]>
Date:   Fri Apr 29 11:33:29 2016 +0100

    Adds patch to correct string formatting error.
---
 debian/patches/01-string-formatting.diff | 24 ++++++++++++++++++++++++
 debian/patches/series                    |  1 +
 2 files changed, 25 insertions(+)

diff --git a/debian/patches/01-string-formatting.diff 
b/debian/patches/01-string-formatting.diff
new file mode 100644
index 0000000..b7d9e2b
--- /dev/null
+++ b/debian/patches/01-string-formatting.diff
@@ -0,0 +1,24 @@
+Description: corrects string formatting 
+Author: Ana C. Custura <[email protected]> 
+---
+This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
+--- a/score.c
++++ b/score.c
+@@ -70,7 +70,7 @@
+       if(f) {
+               // If the file exists, read from it
+               for(j=0; j<2; j++) {
+-                      fscanf(f, titles[j]);
++                      fscanf(f, "%s", titles[j]);
+                       for(i = 0; i<N_SCORES; i++) {
+                               fscanf(f, "%d %31[^\n]\n", 
&g_scores[j][i].score, g_scores[j][i].name);
+                       }
+@@ -89,7 +89,7 @@
+       if(f) {
+               // If the file exists, write to it
+               for(j=0; j<2; j++) {
+-                      fprintf(f, titles[j]);
++                      fprintf(f,"%s", titles[j]);
+                       for(i = 0; i<N_SCORES; i++) {
+                               fprintf (f, "%d %.31s\n", g_scores[j][i].score, 
g_scores[j][i].name);
+                       }
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..30e5ed3
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+01-string-formatting.diff

-- 
Alioth's /usr/local/bin/git-commit-notice on 
/srv/git.debian.org/git/pkg-games/vor.git

_______________________________________________
Pkg-games-commits mailing list
[email protected]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-games-commits

Reply via email to