Explorar o código

Fix: return the allocated buffer

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@41881 15284696-431f-4ddb-bdfa-cd5b030d7da7
Soeren Gebbert %!s(int64=15) %!d(string=hai) anos
pai
achega
3a539ed71b
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      lib/imagery/loc_info.c

+ 1 - 1
lib/imagery/loc_info.c

@@ -18,5 +18,5 @@ char *I_location_info(const char *middle)
     G_snprintf(buf, buf_len, "%s%*s%s%*s%s",
 	    left, len / 2, "", middle, len / 2, "", right);
 
-    return 0;
+    return buf;
 }