shithub: dumb

Download patch

ref: 61daa6b93370e599fd1514d3d539b6886d35cdf4
parent: dbc21eb616a62c6da1f207b25d372b68c6a09e00
author: Azamat H. Hackimov <azamat.hackimov@gmail.com>
date: Fri Mar 11 04:47:43 EST 2016

Commenting out useless statement, fix sprintf invocation.

--- a/dumb/src/it/readpsm.c
+++ b/dumb/src/it/readpsm.c
@@ -1246,7 +1246,8 @@
 	}
 
 	if ( i < j ) return -1;
-	else if ( j > i ) return 1;
+	/* It's same as above. Typo? */
+	/* else if ( j > i ) return 1; */
 
 	i = memcmp( a, b, j );
 	if ( i ) return i;
@@ -1279,7 +1280,7 @@
 		if ( ver )
 		{
 			tag[2][0] = "FORMATVERSION";
-            snprintf( version, 15, "%u", ver );
+            snprintf( version, 15, "%d", ver );
             version[15] = 0;
 			tag[2][1] = (const char *) &version;
 			++n_tags;